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

set -e
set -x

if [ "$BUILD" = "windows" ]; then
  args="-w --ia32"
elif [ "$BUILD" = "linux" ]; then
  args="-l --x64"
elif [ "$BUILD" = "osx" ]; then
  args="-m"
fi

cd electron
which yarn > /dev/null 2>&1 || npm install -g yarn
yarn --link-duplicates --pure-lockfile
yarn run dist ${args}