summaryrefslogtreecommitdiff
path: root/bin/build-electron
blob: 3496abf10379b9d5878f0556bae31f409b0994bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/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}