diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index fcb2bd7f..8bda8f65 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -623,7 +623,7 @@ before_script: #-----------------------------------------------------------------------# # Windows (64-bit) MSI Target # #-----------------------------------------------------------------------# -"Window 64 msi": +"Window 64 MSI": image: registry.gitlab.com/openrgbdevelopers/openrgb-linux-ci-deb-builder:bookworm-i386 stage: deploy tags: @@ -641,5 +641,5 @@ before_script: artifacts: name: "${CI_PROJECT_NAME}_Windows_64_msi_${CI_COMMIT_SHORT_SHA}" paths: - - openrgb.msi - expire_in: 30 days + - OpenRGB_Windows_64.msi + expire_in: 30 days \ No newline at end of file diff --git a/scripts/banner.bmp b/scripts/banner.bmp new file mode 100644 index 00000000..60ab10a4 Binary files /dev/null and b/scripts/banner.bmp differ diff --git a/scripts/build-msi.sh b/scripts/build-msi.sh index fd22cf75..ceac8214 100755 --- a/scripts/build-msi.sh +++ b/scripts/build-msi.sh @@ -4,6 +4,8 @@ GITPARAM="?inline=false" WEBSITE="www.openrgb.org" ICONFILE="qt/OpenRGB.ico" LICENSEFILE="scripts/License.rtf" +BANNERIMAGE="scripts/banner.bmp" +DIALOGBACKGROUND="scripts/dialog_background.bmp" ZIP="/jobs/artifacts/master/download?job=Windows+64" PRODUCTID=$(uuidgen -n @url -N ${WEBSITE} --sha1 | awk '{ print toupper($0) }') @@ -30,20 +32,6 @@ echo -e "Product:\t" $PRODUCTNAME echo -e "Vendor:\t\t" $VENDOR echo -e "Version:\t" $VERSION -ICONID=$(basename "$ICONFILE") -#echo -e "\n\nGetting ${PRODUCTNAME}'s icon from repo:\t"$ICONID -#wget -O ${ICONID} "${GITURL}${ICONFILE}${GITPARAM}" - -LICENSEID=$(basename "$LICENSEFILE") -#echo -e "\nGetting ${PRODUCTNAME}'s icon from repo:\t"$LICENSEID -#wget -O ${LICENSEID} "${GITURL}${LICENSEFILE}${GITPARAM}" - -#echo -e "\nProcessing latest Windows 64 package from " $GITURL -#ZIPFILE=${PRODUCTNAME,,}".zip"; -#echo -e "Zipfile:\t${ZIPFILE}\nZip:\t\t${ZIP}" -#wget -O ${ZIPFILE} "${GITURL}${ZIP}" -#unzip ${ZIPFILE} - #Wix and / or Wine have issues with the mixed upper and lower case letters WORKING_PATH="orgb/" ZIP_PATH="OpenRGB Windows 64-bit/" @@ -87,17 +75,17 @@ XML_MEDIA="\t\n" XML_CONDITIONS="\tVersionNT64\n" XML_ACTION_RUNAS_ADMIN="\t\n" XML_ACTION_FIRSTRUN="\t\n" -XML_ICON="\t\n" +XML_ICON="\t\n" +XML_PROPERTY="\t\n\t\n" XML_ACTIONS_EXECUTE="\t\n\t\tNOT Installed\n\t\tNOT Installed\n\t\n" -XML_WIX_UI="\t\n\t\n\t\n" -XML_METADATA="$XML_PACKAGE $XML_MEDIA $XML_CONDITIONS $XML_ACTION_RUNAS_ADMIN $XML_ACTION_FIRSTRUN $XML_ICON $XML_ACTIONS_EXECUTE $XML_WIX_UI" +XML_WIX_UI="\t\n\t\n\t\n\t\n\t\n\t\n" +XML_METADATA="$XML_PACKAGE $XML_MEDIA $XML_CONDITIONS $XML_ACTION_RUNAS_ADMIN $XML_ACTION_FIRSTRUN $XML_ICON $XML_PROPERTY $XML_ACTIONS_EXECUTE $XML_WIX_UI" -XML_STARTMENU="\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\n" -XML_SHORTCUT="\t\t\t\t\t\n" +XML_STARTMENU="\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\n" XML_ASSOCIATE_FILE="\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n" XML_DIRECTORIES="\t\n\t\t\n\t\t\t\n\t\t\t\t\n$FILES\n$XML_SHORTCUT\n$XML_ASSOCIATE_FILE\t\t\t\t\n$DIRECTORIES\t\t\t\n\t\t\n$XML_STARTMENU\t\n" -XML_COMPONENTS="\t\n\t\t\n\t\t\t\n$COMPONENTS\t\t\t\n\t\t\n\t\n" +XML_COMPONENTS="\t\n\t\t\n\t\t\t\n$COMPONENTS\t\t\t\n\t\t\n\t\n" XML_DATA="$XML_DIRECTORIES $XML_COMPONENTS" #Wipe out any previous XMLOUTFILE and add the header @@ -110,4 +98,4 @@ echo -e "\t...Done!\n\n" #Once the XML file manifest is created create the package candle -arch x64 ${PRODUCTNAME,,}.wxs -light -sval -ext WixUIExtension ${PRODUCTNAME,,}.wixobj +light -sval -ext WixUIExtension ${PRODUCTNAME,,}.wixobj -out ${PRODUCTNAME}_Windows_64.msi \ No newline at end of file diff --git a/scripts/dialog_background.bmp b/scripts/dialog_background.bmp new file mode 100644 index 00000000..11416c43 Binary files /dev/null and b/scripts/dialog_background.bmp differ