summaryrefslogtreecommitdiff
path: root/bin/build-electron
blob: dc7a1ca2d3ec4dd879dd17fa0a40399405cb2de7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash



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}