File tree Expand file tree Collapse file tree 2 files changed +22
-5
lines changed Expand file tree Collapse file tree 2 files changed +22
-5
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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 },
You can’t perform that action at this time.
0 commit comments