From f8c05f3dee29c7ab1eb3eba82c917fe18333fc41 Mon Sep 17 00:00:00 2001 From: "kali kaneko (leap communications)" Date: Fri, 9 Oct 2020 21:58:15 +0200 Subject: [pkg] add vendor icon to app --- branding/scripts/init | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'branding/scripts') diff --git a/branding/scripts/init b/branding/scripts/init index 4c57d43..aa22326 100755 --- a/branding/scripts/init +++ b/branding/scripts/init @@ -12,6 +12,7 @@ PROVIDER=None SCRIPT_NAME = sys.argv[0] CA_README = "CERT.Readme" ASSETS_README = "assets/FILES.Readme" +VENDOR_QRC = "vendor.qrc" def initVendor(): global VENDOR_PATH @@ -87,11 +88,15 @@ def initVendorConfig(): with open(os.path.join(os.path.dirname(os.path.abspath(__file__)), "ASSETS_REQUIRED")) as f: allAssets = f.read() - with open(os.path.join(VENDOR_PATH, ASSETS_README), "w") as f: f.write(ASSETS_INFO) f.write(allAssets) + with open(os.path.join(os.path.dirname(os.path.abspath(__file__)), "../templates/vendor/vendor.qrc")) as f: + qrc = f.read() + with open(os.path.join(VENDOR_PATH, VENDOR_QRC), "w") as f: + f.write(qrc) + def initGitRepo(): out = subprocess.run(['git', 'init'], cwd=VENDOR_PATH) if out.returncode != 0: -- cgit v1.2.3