summaryrefslogtreecommitdiff
path: root/branding/scripts/init
diff options
context:
space:
mode:
Diffstat (limited to 'branding/scripts/init')
-rwxr-xr-xbranding/scripts/init7
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: