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

set -e
set -x

if [ "$BUILD" = "windows" ]; then
  args="-w --ia32"
elif [ "$BUILD" = "linux" ]; then
  args="-l --x64"
elif [ "$BUILD" = "osx" ]; then
  cp installer_scripts/electron-entitlements.plist electron/build/
  args="-m"
fi

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