Skip to content

Commit 7d123e6

Browse files
committed
Add build script - remove previous imperfect build method.
1 parent 46b2621 commit 7d123e6

File tree

2 files changed

+22
-5
lines changed

2 files changed

+22
-5
lines changed

build.sh

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/bin/bash
2+
3+
# clean up after last build
4+
rm -rf build/
5+
rm -rf bin/
6+
7+
mkdir build/
8+
mkdir bin/
9+
10+
# move files required by production app to the /build folder
11+
cp -r dt/ build/dt/
12+
cp -r lib/ build/lib/
13+
cp main.js build/
14+
cp package.json build/
15+
16+
# install all dependencies
17+
cd build/
18+
npm i --production
19+
cd ..
20+
21+
# build packages for all supported OS versions
22+
electron-packager ./build/ Betwixt --out ./bin/ --version=0.37.2 --platform=all --arch=all

package.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@
44
"description": "Web Debugging Proxy based on Chrome DevTools Network panel",
55
"main": "main.js",
66
"scripts": {
7-
"build": "npm run build:custom -- --platform=all --arch=all",
8-
"build:custom": "electron-packager ./ Betwixt --overwrite --ignore ./bin/ --out ./bin/ --version=0.35.0",
9-
"build:linux": "npm run build:custom -- --platform=linux --arch=all",
10-
"build:osx": "npm run build:custom -- --platform=darwin --arch=x64",
11-
"build:win": "npm run build:custom -- --platform=win32 --arch=all",
127
"start": "electron main.js",
138
"test": "jshint main.js lib/ && jscs main.js lib/"
149
},

0 commit comments

Comments
 (0)