blob: d8ce78b83a171109a6bda427c1acfe5873957dbe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/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 ${args}"
else
cd electron
npm install
npm run dist
fi
|