From d91dc90a71f43481282d4a8b21da8d0a9bd9f50e Mon Sep 17 00:00:00 2001 From: Baptiste Augrain Date: Wed, 28 Sep 2022 12:32:19 +0200 Subject: [PATCH] fix(msi): update shortcuts and context menus --- build/windows/msi/build.sh | 6 ++- .../msi/includes/vscodium-variables.wxi | 7 +-- build/windows/msi/vscodium.wxs | 50 +++++++++---------- 3 files changed, 31 insertions(+), 32 deletions(-) diff --git a/build/windows/msi/build.sh b/build/windows/msi/build.sh index f43cc11..f5ef5cc 100644 --- a/build/windows/msi/build.sh +++ b/build/windows/msi/build.sh @@ -12,12 +12,14 @@ WIN_SDK_FULL_VERSION="10.0.17763.0" if [[ "${VSCODE_QUALITY}" == "insider" ]]; then PRODUCT_NAME="VSCodium - Insiders" PRODUCT_SKU="vscodium-insiders" + PRODUCT_CODE="VSCodiumInsiders" PRODUCT_UPGRADE_CODE="1C9B7195-5A9A-43B3-B4BD-583E20498467" ICON_DIR="..\\..\\..\\src\\insider\\resources\\win32" SETUP_RESOURCES_DIR=".\\resources\\insider" else PRODUCT_NAME="VSCodium" PRODUCT_SKU="vscodium" + PRODUCT_CODE="VSCodium" PRODUCT_UPGRADE_CODE="965370CD-253C-4720-82FC-2E6B02A53808" ICON_DIR="..\\..\\..\\src\\stable\\resources\\win32" SETUP_RESOURCES_DIR=".\\resources\\stable" @@ -73,8 +75,8 @@ BuildSetupTranslationTransform() { rm -f "${SETUP_RELEASE_DIR}\\${OUTPUT_BASE_FILENAME}.${CULTURE}.mst" } -"${WIX}bin\\heat.exe" dir "${BINARY_DIR}" -out "Files-${OUTPUT_BASE_FILENAME}.wxs" -t vscodium.xsl -gg -sfrag -scom -sreg -srd -ke -cg "AppFiles" -var var.AppName -var var.ProductVersion -var var.IconDir -var var.LicenseDir -var var.BinaryDir -dr APPLICATIONFOLDER -platform "${PLATFORM}" -"${WIX}bin\\candle.exe" -arch "${PLATFORM}" vscodium.wxs "Files-${OUTPUT_BASE_FILENAME}.wxs" -ext WixUIExtension -ext WixUtilExtension -ext WixNetFxExtension -dAppName="${PRODUCT_NAME}" -dProductVersion="${RELEASE_VERSION%-insider}" -dProductId="${PRODUCT_ID}" -dBinaryDir="${BINARY_DIR}" -dIconDir="${ICON_DIR}" -dLicenseDir="${LICENSE_DIR}" -dSetupResourcesDir="${SETUP_RESOURCES_DIR}" -dCulture="${CULTURE}" +"${WIX}bin\\heat.exe" dir "${BINARY_DIR}" -out "Files-${OUTPUT_BASE_FILENAME}.wxs" -t vscodium.xsl -gg -sfrag -scom -sreg -srd -ke -cg "AppFiles" -var var.ManufacturerName -var var.AppName -var var.AppCodeName -var var.ProductVersion -var var.IconDir -var var.LicenseDir -var var.BinaryDir -dr APPLICATIONFOLDER -platform "${PLATFORM}" +"${WIX}bin\\candle.exe" -arch "${PLATFORM}" vscodium.wxs "Files-${OUTPUT_BASE_FILENAME}.wxs" -ext WixUIExtension -ext WixUtilExtension -ext WixNetFxExtension -dManufacturerName="VSCodium" -dAppCodeName="${PRODUCT_CODE}" -dAppName="${PRODUCT_NAME}" -dProductVersion="${RELEASE_VERSION%-insider}" -dProductId="${PRODUCT_ID}" -dBinaryDir="${BINARY_DIR}" -dIconDir="${ICON_DIR}" -dLicenseDir="${LICENSE_DIR}" -dSetupResourcesDir="${SETUP_RESOURCES_DIR}" -dCulture="${CULTURE}" "${WIX}bin\\light.exe" vscodium.wixobj "Files-${OUTPUT_BASE_FILENAME}.wixobj" -ext WixUIExtension -ext WixUtilExtension -ext WixNetFxExtension -spdb -cc "${TEMP}\\vscodium-cab-cache\\${PLATFORM}" -out "${SETUP_RELEASE_DIR}\\${OUTPUT_BASE_FILENAME}.msi" -loc "i18n\\vscodium.${CULTURE}.wxl" -cultures:"${CULTURE}" -sice:ICE60 -sice:ICE69 BuildSetupTranslationTransform de-de 1031 diff --git a/build/windows/msi/includes/vscodium-variables.wxi b/build/windows/msi/includes/vscodium-variables.wxi index 5e9328e..f919553 100644 --- a/build/windows/msi/includes/vscodium-variables.wxi +++ b/build/windows/msi/includes/vscodium-variables.wxi @@ -11,15 +11,12 @@ - - - - - + + diff --git a/build/windows/msi/vscodium.wxs b/build/windows/msi/vscodium.wxs index bbe9719..3734d65 100644 --- a/build/windows/msi/vscodium.wxs +++ b/build/windows/msi/vscodium.wxs @@ -1045,32 +1045,32 @@ - - - - + + + + - - - + + + - - - + + + - - - - - - - - - + + + + + + + + + @@ -1080,17 +1080,17 @@ - + - - + + - + @@ -1108,8 +1108,8 @@ - - + +