summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkali <kali@win>2020-11-06 00:36:30 +0100
committerkali kaneko (leap communications) <kali@leap.se>2020-11-06 00:38:40 +0100
commitea0f55bc6c92402ecbbc2af14c3e1074988cb413 (patch)
treebf83aa0d446fc950a5c2033d0d13cdd7dda3f12d
parent5d8fc3c0dbba76610cf797e98c8e9a60b07c2d4c (diff)
[pkg] customize windows installer
I kind of liked the "classic" style more (looks cleaner), but it looks like we only can customize the logo etc with the "modern" look and feel in windows. I think the way to go would be to add a QStyleSheet to the installer (and adding logo etc there), but I think that is going to take some reading. this is not too bad for now, at least we can put logos to differentiate riseup/calyx etc.
-rw-r--r--Makefile3
-rwxr-xr-xbranding/scripts/gen-qtinstaller4
-rw-r--r--branding/templates/qtinstaller/config/config.xml2
-rw-r--r--branding/templates/qtinstaller/installer.pro2
4 files changed, 10 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index eff630b..a5639d8 100644
--- a/Makefile
+++ b/Makefile
@@ -142,6 +142,9 @@ installer: check_qtifw checksign
@cp -r ${TEMPLATES}/qtinstaller/packages ${INSTALLER}
@cp -r ${TEMPLATES}/qtinstaller/installer.pro ${INSTALLER}
@cp -r ${TEMPLATES}/qtinstaller/config ${INSTALLER}
+ @cp ${VENDOR_PATH}/assets/icon.ico ${INSTALLER}/config/installer-icon.ico
+ @cp ${VENDOR_PATH}/assets/icon.icns ${INSTALLER}/config/installer-icon.icns
+ @cp ${VENDOR_PATH}/assets/installer-logo.png ${INSTALLER}/config/installer-logo.png
ifeq (${PLATFORM}, darwin)
@mkdir -p ${INST_DATA}/helper
@VERSION=${VERSION} VENDOR_PATH=${VENDOR_PATH} ${SCRIPTS}/gen-qtinstaller osx ${INSTALLER}
diff --git a/branding/scripts/gen-qtinstaller b/branding/scripts/gen-qtinstaller
index 1f2c03d..04ecaf7 100755
--- a/branding/scripts/gen-qtinstaller
+++ b/branding/scripts/gen-qtinstaller
@@ -21,16 +21,20 @@ OS_CONFIG = {
<RunProgramArguments>
<Argument>@TargetDir@</Argument>
</RunProgramArguments>
+
<WizardStyle>mac</WizardStyle>
<!-- end osx -->
""",
'windows': """
+ <!-- windows -->
<TargetDir>@ApplicationsDir@/$APPNAME</TargetDir>
<StartMenuDir>$APPNAME</StartMenuDir>
<RunProgram>@TargetDir@/$BINNAME.exe</RunProgram>
<RunProgramArguments>
</RunProgramArguments>
+
+ <WizardStyle>Modern</WizardStyle>
<!-- end windows -->
"""
}
diff --git a/branding/templates/qtinstaller/config/config.xml b/branding/templates/qtinstaller/config/config.xml
index 13dba49..df7b6d4 100644
--- a/branding/templates/qtinstaller/config/config.xml
+++ b/branding/templates/qtinstaller/config/config.xml
@@ -5,6 +5,8 @@
<Title>$APPNAME Installer ($VERSION)</Title>
<Publisher>LEAP Encryption Access Project</Publisher>
<AllowNonAsciiCharacters>false</AllowNonAsciiCharacters>
+ <Logo>installer-logo.png</Logo>
+ <InstallerApplicationIcon>installer-icon</InstallerApplicationIcon>
<!--
<RemoteRepositories>
diff --git a/branding/templates/qtinstaller/installer.pro b/branding/templates/qtinstaller/installer.pro
index ec800c1..3d65334 100644
--- a/branding/templates/qtinstaller/installer.pro
+++ b/branding/templates/qtinstaller/installer.pro
@@ -5,7 +5,7 @@ CONFIG -= debug_and_release
INPUT = $$PWD/config/config.xml $$PWD/packages
inst.input = INPUT
inst.output = $$INSTALLER
-inst.commands = binarycreator -c $$PWD/config/config.xml -p $$PWD/packages ${QMAKE_FILE_OUT}
+inst.commands = binarycreator --ignore-translations -c $$PWD/config/config.xml -p $$PWD/packages ${QMAKE_FILE_OUT}
inst.CONFIG += target_predeps no_link combine
QMAKE_EXTRA_COMPILERS += inst