[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:
Devin Binnie
2022-06-30 12:25:28 -04:00
committed by GitHub
parent 5b93e20ab8
commit e674c5c28e
5 changed files with 15 additions and 8 deletions

View File

@@ -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)"
}

View File

@@ -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