summaryrefslogtreecommitdiff
path: root/bin/build-electron
diff options
context:
space:
mode:
authorrejbasket <39080670+rejbasket@users.noreply.github.com>2022-02-28 16:30:40 +0100
committerGitHub <noreply@github.com>2022-02-28 16:30:40 +0100
commitf2208a88fe4bb4bae20a1f821dd175880c2905d5 (patch)
tree85544d2d14a04d34cd7a8e98f0261ee877ca8caf /bin/build-electron
parentbd43e007753c1e5baf1f8b191944378beb68c6ec (diff)
installer updates (#1565)
* * build zip versions for macOS and windows * set application version macOS and Windows * automatically uninstall previous version in Windows * add zip to upload Co-authored-by: rejbasket <rejbasket@users.noreply.github.com>
Diffstat (limited to 'bin/build-electron')
-rwxr-xr-xbin/build-electron4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/build-electron b/bin/build-electron
index f375e347..9fdb88ae 100755
--- a/bin/build-electron
+++ b/bin/build-electron
@@ -12,6 +12,10 @@ elif [ "$BUILD" = "osx" ]; then
args="-m"
fi
+# electron version setting on release
+if [[ "$VERSION" =~ ^v[0-9][.0-9]+$ ]]; then
+ sed -i'' -e 's/11.99.11/'"${VERSION#v}"'/' electron/package.json
+fi
cd electron
which yarn > /dev/null 2>&1 || npm install -g yarn
yarn --link-duplicates --pure-lockfile