get the right architecture

pull/432/head
Lex Neva 2019-04-12 15:38:54 -04:00
rodzic 3a3c9e5406
commit a87694dc61
1 zmienionych plików z 7 dodań i 1 usunięć

Wyświetl plik

@ -1,12 +1,18 @@
#!/bin/bash
if [ "$BUILD" = "windows" -o "$BUILD" = "linux" ]; then
if [ "$BUILD" = "windows" ]; then
args="-w --ia32"
else
args="-l --x64"
fi
docker run --rm \
-e ELECTRON_CACHE=$HOME/.cache/electron \
-v ${PWD}/electron:/project \
-v ~/.cache/electron:/root/.cache/electron \
electronuserland/builder:wine \
/bin/bash -c "yarn --link-duplicates --pure-lockfile && yarn run dist"
/bin/bash -c "yarn --link-duplicates --pure-lockfile && yarn run dist ${args}"
else
cd electron
npm install