summaryrefslogtreecommitdiff
path: root/branding/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'branding/scripts')
-rwxr-xr-xbranding/scripts/gen-qtinstaller15
1 files changed, 13 insertions, 2 deletions
diff --git a/branding/scripts/gen-qtinstaller b/branding/scripts/gen-qtinstaller
index 419d958..58ab3f9 100755
--- a/branding/scripts/gen-qtinstaller
+++ b/branding/scripts/gen-qtinstaller
@@ -25,7 +25,7 @@ OS_CONFIG = {
<!-- end osx -->
""",
'windows': """
- <TargetDir>@ApplicationsDir@/DemoLibVPN</TargetDir>
+ <TargetDir>@ApplicationsDir@/$APPNAME</TargetDir>
<StartMenuDir>$APPNAME</StartMenuDir>
<RunProgram>@TargetDir@/$BINNAME.exe</RunProgram>
@@ -69,12 +69,23 @@ def generateConfig(data, platform, outDir):
data=templateData)
def generatePackageMetadata(data, platform, outDir):
+ appname = 'applicationName'
templateData = {
- 'APPNAME': data['applicationName'],
+ 'APPNAME': data[appname],
'BINNAME': data['binaryName'],
'VERSION': getVersion(),
'TIMESTAMP': time.strftime('%Y-%m-%d')
}
+ if platform == "windows":
+ p = data[appname] + " for Windows"
+ elif platform == "osx":
+ p = data[appname] + " for OSX"
+ elif platform == "linux":
+ p = data[appname] + " for GNU/Linux"
+ else:
+ p = data[appname]
+ templateData['APPNAME_PLATFORM'] = p
+
renderTemplate(
templatePath='../templates/qtinstaller/packages/bitmaskvpn/meta/package.xml',
outPath=os.path.join(outDir, 'packages/bitmaskvpn/meta/package.xml'),