inkstitch/bin/build-electron

19 wiersze
372 B
Plaintext
Czysty Zwykły widok Historia

2019-04-11 03:38:43 +00:00
#!/bin/bash
2020-08-18 18:58:39 +00:00
set -e
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
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
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}