-
Notifications
You must be signed in to change notification settings - Fork 26
/
release.sh
executable file
·57 lines (48 loc) · 1.15 KB
/
release.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/bin/bash
#
# Script to release new versions for Windows, macOS, and Linux.
#
# This script expects a file `./env` with exported envvars to sign executables
# for Windows and macOS.
#
# The commented cmdlines were used in the past to fix different kind of issues.
# They were left here because they might be useful for troubleshooting in the future.
set -e # Exit on any command failure.
set -u # Exit on unset variables.
step0() {
echo Environment:
echo - node $(node -v)
echo - npm $(npm -v)
echo - python $(python --version | awk '{print $2}')
echo
}
step1() {
echo step1: cleaning and installing dependencies
rm -rf node_modules/
npm install
}
step2() {
echo step2: transaction checks and building
make check
make i18n
rm -rf build/
#export NODE_OPTIONS=--max_old_space_size=2048
npm run build
}
step3() {
echo "step3: actions between building and packaging"
echo "- Quick fix for Issue 484: https://github.com/HathorNetwork/hathor-wallet/issues/484"
rm ./node_modules/usb/binding.gyp
}
step4() {
echo step4: packing
source ./env
npm run electron-pack-linux
npm run electron-pack-win
npm run electron-pack-mac
}
step0
step1
step2
step3
step4