summaryrefslogtreecommitdiff
path: root/branding
diff options
context:
space:
mode:
authorkali kaneko (leap communications) <kali@leap.se>2020-10-09 21:58:15 +0200
committerRuben Pollan <meskio@sindominio.net>2020-10-13 19:08:55 +0200
commitf8c05f3dee29c7ab1eb3eba82c917fe18333fc41 (patch)
tree4dc17ad736d670652c8f6f9437afd9a71f4cdada /branding
parent73d0c7a96df2212d5a3ee6289fc286f3e6459028 (diff)
[pkg] add vendor icon to app
Diffstat (limited to 'branding')
-rwxr-xr-xbranding/scripts/init7
-rw-r--r--branding/templates/vendor/vendor.qrc5
2 files changed, 11 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:
diff --git a/branding/templates/vendor/vendor.qrc b/branding/templates/vendor/vendor.qrc
new file mode 100644
index 0000000..2cfa32b
--- /dev/null
+++ b/branding/templates/vendor/vendor.qrc
@@ -0,0 +1,5 @@
+<RCC>
+ <qresource prefix="/vendor/">
+ <file alias="icon.svg">assets/icon.svg</file>
+ </qresource>
+</RCC>