2019-04-11 03:38:43 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2020-08-18 18:58:39 +00:00
|
|
|
set -e
|
2020-08-18 18:58:52 +00:00
|
|
|
set -x
|
2020-04-28 16:34:05 +00:00
|
|
|
|
2019-11-15 18:09:53 +00:00
|
|
|
if [ "$BUILD" = "windows" ]; then
|
2020-04-28 16:34:05 +00:00
|
|
|
args="-w --ia32"
|
2019-11-15 18:09:53 +00:00
|
|
|
elif [ "$BUILD" = "linux" ]; then
|
|
|
|
args="-l --x64"
|
2020-04-28 16:34:05 +00:00
|
|
|
elif [ "$BUILD" = "osx" ]; then
|
2021-12-08 21:18:41 +00:00
|
|
|
cp installer_scripts/electron-entitlements.plist electron/build/
|
2020-04-28 16:34:05 +00:00
|
|
|
args="-m"
|
2019-04-11 03:38:43 +00:00
|
|
|
fi
|
2020-04-28 16:34:05 +00:00
|
|
|
|
|
|
|
cd electron
|
2020-08-18 18:58:52 +00:00
|
|
|
which yarn > /dev/null 2>&1 || npm install -g yarn
|
2020-04-28 16:34:05 +00:00
|
|
|
yarn --link-duplicates --pure-lockfile
|
|
|
|
yarn run dist ${args}
|