kopia lustrzana https://github.com/inkstitch/inkstitch
20 wiersze
501 B
Bash
Executable File
20 wiersze
501 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [ "$BUILD" = "windows" ]; then
|
|
cd electron
|
|
yarn --link-duplicates --pure-lockfile && yarn run dist -w --ia32
|
|
elif [ "$BUILD" = "linux" ]; then
|
|
args="-l --x64"
|
|
|
|
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
|