[MM-45409] Restrict auto-update functionality specifically to the NSIS installer and AppImage (#2177)
* [MM-45409] Restrict auto-update functionality specifically to the NSIS installer and AppImage * Fixes * Fix syntax error * Fixes #2 * Switch PR builds to ZIP * Fix
This commit is contained in:
@@ -531,6 +531,8 @@ function Run-BuildElectron {
|
||||
npm run build
|
||||
#npm run build --prefix="$(Get-RootDir)" "$(Get-RootDir)"
|
||||
Print-Info "Packaging nodejs/electron for Windows (running npm run package:windows)..."
|
||||
# NSIS has the upgrade flag enabled, so it must be done first
|
||||
npm run package:windows-nsis
|
||||
npm run package:windows
|
||||
#npm run package:windows --prefix="$(Get-RootDir)" "$(Get-RootDir)"
|
||||
}
|
||||
|
@@ -12,7 +12,9 @@ if [ "$RELEASE_VERSION" == "" ]; then
|
||||
fi
|
||||
|
||||
echo "${RELEASE_VERSION}"
|
||||
for i in ./release/${RELEASE_VERSION}*.yml; do
|
||||
VERSION=$VERSION yq eval -i '.files[].url |= strenv(VERSION) + "/" + .' $i
|
||||
done
|
||||
if [[ -f ./release/${RELEASE_VERSION}*.yml ]]; then
|
||||
for i in ./release/${RELEASE_VERSION}*.yml; do
|
||||
VERSION=$VERSION yq eval -i '.files[].url |= strenv(VERSION) + "/" + .' $i
|
||||
done
|
||||
fi
|
||||
|
||||
|
Reference in New Issue
Block a user