diff options
| author | Lex Neva <github.com@lexneva.name> | 2019-04-12 15:38:54 -0400 |
|---|---|---|
| committer | Lex Neva <github.com@lexneva.name> | 2019-04-12 15:38:54 -0400 |
| commit | a87694dc61d7e90f63efb05666e7fd308f447652 (patch) | |
| tree | 9d2048f2af180caef00a6aa4bc04b11635774b19 /bin | |
| parent | 3a3c9e5406563edd00c2ec08102ca7c69aaa360c (diff) | |
get the right architecture
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/build-electron | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/bin/build-electron b/bin/build-electron index b4887268..d8ce78b8 100755 --- a/bin/build-electron +++ b/bin/build-electron @@ -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 |
