Skip to content

Commit b956058

Browse files
committed
Got build scripts working finally
1 parent 3f05038 commit b956058

File tree

3 files changed

+19
-22
lines changed

3 files changed

+19
-22
lines changed

README.md

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,23 @@ clone this directory
2424

2525
`cd Arduino_External_Editor`
2626

27-
Now we need to install the nwjs package
28-
29-
`npm install [email protected] --nwjs_build_type=sdk`
27+
You need the nwjs-builder
28+
`npm install nwjs-builder -g`
3029

31-
To start run
30+
To run
3231
`npm start`
3332

3433
#### Building
3534
You need the nwjs-builder
3635
`npm install nwjs-builder -g`
3736

38-
Run the following command to build for all platforms. You can remove platforms
39-
if you want.
37+
Run the following command to build for all platforms in production mode. It will also zip them.
38+
`npm run-script build-production`
39+
40+
The following commands will build in sdk mode (console, inspector mode). You can build all or just the one you want.
41+
Just run one of the following. They are pretty self explanatory.
42+
43+
`npm run-script build-all-sdk`
44+
`npm run-script build-win-sdk`
45+
`npm run-script build-mac-sdk`
46+
`npm run-script build-linux-sdk`

build.js

Lines changed: 0 additions & 14 deletions
This file was deleted.

package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,12 @@
55
"main": "index.html",
66
"scripts": {
77
"test": "echo \"Error: no test specified\" && exit 1",
8-
"start": "node_modules/.bin/nw",
9-
"build": "node build.js"
8+
"start": "nwb nwbuild -v 0.14.7-sdk -r ./",
9+
"build-production": "nwb nwbuild -v 0.14.7 -p win32,osx64,linux64 --output-format ZIP --executable-name \"Arduino External Editor\" --win-ico img/icon.ico --mac-icns img/icon.icns -o ./build ./",
10+
"build-all-sdk": "nwb nwbuild -v 0.14.7-sdk -p win32,osx64,linux64 --executable-name \"Arduino External Editor\" --win-ico img/icon.ico --mac-icns img/icon.icns --side-by-side -o ./build ./",
11+
"build-win-sdk": "nwb nwbuild -v 0.14.7-sdk -p win32 --executable-name \"Arduino External Editor\" --win-ico img/icon.ico --side-by-side -o ./build ./",
12+
"build-mac-sdk": "nwb nwbuild -v 0.14.7-sdk -p osx64 --executable-name \"Arduino External Editor\" --mac-icns img/icon.icns --side-by-side -o ./build ./",
13+
"build-linux-sdk": "nwb nwbuild -v 0.14.7-sdk -p linux64 --executable-name \"Arduino External Editor\" --side-by-side -o ./build ./"
1014
},
1115
"window": {
1216
"width": 900,

0 commit comments

Comments
 (0)