mirror of
https://github.com/kremalicious/blowfish.git
synced 2024-11-15 09:35:14 +01:00
20 lines
747 B
Bash
Executable File
20 lines
747 B
Bash
Executable File
#!/bin/bash
|
|
|
|
rm -rf {dist,build}/ && \
|
|
npm run build && \
|
|
npm run package && \
|
|
|
|
if [ -x "$(command -v docker)" ]; then
|
|
docker run --rm \
|
|
--env-file <(env | grep -iE 'DEBUG|NODE_|ELECTRON_|YARN_|NPM_|CI|CIRCLE|TRAVIS_TAG|TRAVIS|TRAVIS_REPO_|TRAVIS_BUILD_|TRAVIS_BRANCH|TRAVIS_PULL_REQUEST_|APPVEYOR_|CSC_|GH_|GITHUB_|BT_|AWS_|STRIP|BUILD_') \
|
|
--env ELECTRON_CACHE="/root/.cache/electron" \
|
|
--env ELECTRON_BUILDER_CACHE="/root/.cache/electron-builder" \
|
|
-v ${PWD}:/project \
|
|
-v ${PWD##*/}-node-modules:/project/node_modules \
|
|
-v ~/.cache/electron:/root/.cache/electron \
|
|
-v ~/.cache/electron-builder:/root/.cache/electron-builder \
|
|
electronuserland/builder:wine \
|
|
/bin/bash -c "npm i && npm run build && npm run package:win"
|
|
fi
|
|
|