diff options
author | kali kaneko (leap communications) <kali@leap.se> | 2020-10-09 21:58:15 +0200 |
---|---|---|
committer | Ruben Pollan <meskio@sindominio.net> | 2020-10-13 19:08:55 +0200 |
commit | f8c05f3dee29c7ab1eb3eba82c917fe18333fc41 (patch) | |
tree | 4dc17ad736d670652c8f6f9437afd9a71f4cdada /branding/scripts | |
parent | 73d0c7a96df2212d5a3ee6289fc286f3e6459028 (diff) |
[pkg] add vendor icon to app
Diffstat (limited to 'branding/scripts')
-rwxr-xr-x | branding/scripts/init | 7 |
1 files changed, 6 insertions, 1 deletions
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: |