inkstitch/bin/build-electron

17 wiersze
267 B
Bash
Executable File

#!/bin/bash
set -e
if [ "$BUILD" = "windows" ]; then
args="-w --ia32"
elif [ "$BUILD" = "linux" ]; then
args="-l --x64"
elif [ "$BUILD" = "osx" ]; then
args="-m"
fi
cd electron
npm install -g yarn
yarn --link-duplicates --pure-lockfile
yarn run dist ${args}