kopia lustrzana https://github.com/dceejay/electron-node-red
some more tidying
rodzic
05e7642ee5
commit
c5d396321e
|
@ -22,6 +22,7 @@ coverage
|
|||
# Compiled binary addons (http://nodejs.org/api/addons.html)
|
||||
build/Release
|
||||
dist/*
|
||||
lib/*
|
||||
|
||||
# Dependency directory
|
||||
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git
|
||||
|
|
12
.travis.yml
12
.travis.yml
|
@ -2,17 +2,15 @@
|
|||
language: objective-c
|
||||
cache:
|
||||
directories:
|
||||
- Node_modules
|
||||
- node_modules
|
||||
env:
|
||||
# Node in order to install it by running the command individually, here to specify the version
|
||||
- NODE_VERSION="4.4"
|
||||
#- NODE_VERSION="4.4"
|
||||
before_install:
|
||||
# Brew is the latest state
|
||||
# Install brew -> wine and makensis
|
||||
- brew update
|
||||
# Wine for build to the Windows environment is required
|
||||
- brew install wine
|
||||
- wine --version
|
||||
# Makensis for creating Windows Installer is required
|
||||
- brew install makensis
|
||||
# Install the nvm. Nvm is not included by default in OS X environment of Travis
|
||||
- git clone https://github.com/creationix/nvm.git /tmp/.nvm
|
||||
|
@ -27,5 +25,5 @@
|
|||
- npm install
|
||||
script:
|
||||
- npm run build
|
||||
deploy:
|
||||
skip_cleanup: true
|
||||
#deploy:
|
||||
# skip_cleanup: true
|
||||
|
|
|
@ -43,6 +43,15 @@ look at `https://github.com/LinusU/node-appdmg`
|
|||
|
||||
appdmg appdmg.json ~/Desktop/NodeRED.dmg
|
||||
|
||||
|
||||
### To package as a deb
|
||||
|
||||
look at `https://github.com/jordansissel/fpm`
|
||||
|
||||
fpm -s dir -t deb -f -n node-red-electron -v 0.13.4 -m your-email@example.com -a i386 Node-RED-linux-ia32/
|
||||
fpm -s dir -t deb -f -n node-red-electron -v 0.13.4 -m your-email@example.com -a x86_64 Node-RED-linux-x64/
|
||||
|
||||
|
||||
#### License [CC0 (Public Domain)](LICENSE.md)
|
||||
|
||||
## See also
|
||||
|
|
|
@ -1 +1 @@
|
|||
[{"type":"tab","id":"41f61d2.fbe09e4","label":"Flow 1"},{"id":"52a903f3.ad56fc","type":"ui_tab","z":"41f61d2.fbe09e4","name":"Home","icon":"dashboard","order":"1"},{"id":"30e652f.d9de3ae","type":"ui_group","z":"41f61d2.fbe09e4","order":"2","name":"Widgets","width":"6"},{"id":"a8ecb9.c60f4348","type":"ui_group","z":"41f61d2.fbe09e4","order":"1","name":"Introduction","width":"6"},{"id":"d3a0fd6d.2c5f","type":"ui_slider","z":"41f61d2.fbe09e4","tab":"52a903f3.ad56fc","group":"30e652f.d9de3ae","order":"3","width":"6","height":"1","name":"Slider","label":"Slider","topic":"","min":0,"max":10,"x":130,"y":100,"wires":[["42ddca5b.bd2234"]]},{"id":"42ddca5b.bd2234","type":"ui_gauge","z":"41f61d2.fbe09e4","tab":"52a903f3.ad56fc","group":"30e652f.d9de3ae","order":"2","width":"6","height":"4","name":"Gauge","title":"","label":"","format":"{{value}}","min":0,"max":10,"x":290,"y":100,"wires":[]},{"id":"852d9c04.7ad26","type":"ui_link","z":"41f61d2.fbe09e4","name":"Editor","link":"http://localhost:8000/admin","icon":"open_in_browser","target":"newtab","order":1,"x":70,"y":240,"wires":[]},{"id":"fce4a072.031b6","type":"ui_button","z":"41f61d2.fbe09e4","tab":"52a903f3.ad56fc","group":"30e652f.d9de3ae","order":"4","width":"6","height":"1","name":"Button","label":"Click Me","color":"green","icon":"","payload":"Hello !","topic":"","x":130,"y":160,"wires":[["a09bb056.68216"]]},{"id":"a09bb056.68216","type":"ui_toast","z":"41f61d2.fbe09e4","name":"","x":310,"y":160,"wires":[]},{"id":"189cf871.681118","type":"ui_template","z":"41f61d2.fbe09e4","tab":"52a903f3.ad56fc","group":"a8ecb9.c60f4348","name":"Welcome","order":1,"format":"<h3>Welcome to Node-RED</h3>\nOn the right you will see some simple widgets to play with.\nTo get started making something a bit more useful click the menu icon at the top-left, and select <b>Editor</b>.","storeOutMessages":false,"fwdInMessages":false,"x":80,"y":40,"wires":[[]]},{"id":"9944bbbe.242c68","type":"ui_link","z":"41f61d2.fbe09e4","name":"Worldmap","link":"http://localhost:8000/worldmap","icon":"language","target":"iframe","order":"2","x":80,"y":280,"wires":[]},{"id":"fcc1980e.81fb58","type":"worldmap","z":"41f61d2.fbe09e4","name":"","x":80,"y":320,"wires":[]}]
|
||||
[{"type":"tab","id":"41f61d2.fbe09e4","label":"Flow 1"},{"id":"52a903f3.ad56fc","type":"ui_tab","z":"41f61d2.fbe09e4","name":"Home","icon":"dashboard","order":"1"},{"id":"30e652f.d9de3ae","type":"ui_group","z":"41f61d2.fbe09e4","order":"2","name":"Widgets","width":"6"},{"id":"a8ecb9.c60f4348","type":"ui_group","z":"41f61d2.fbe09e4","order":"1","name":"Introduction","width":"6"},{"id":"d3a0fd6d.2c5f","type":"ui_slider","z":"41f61d2.fbe09e4","tab":"52a903f3.ad56fc","group":"30e652f.d9de3ae","order":"3","width":"6","height":"1","name":"Slider","label":"Slider","topic":"","min":0,"max":10,"x":130,"y":100,"wires":[["42ddca5b.bd2234"]]},{"id":"42ddca5b.bd2234","type":"ui_gauge","z":"41f61d2.fbe09e4","tab":"52a903f3.ad56fc","group":"30e652f.d9de3ae","order":"2","width":"6","height":"4","name":"Gauge","title":"","label":"","format":"{{value}}","min":0,"max":10,"x":290,"y":100,"wires":[]},{"id":"852d9c04.7ad26","type":"ui_link","z":"41f61d2.fbe09e4","name":"Editor","link":"http://localhost:8000/admin","icon":"open_in_browser","target":"newtab","order":1,"x":70,"y":240,"wires":[]},{"id":"fce4a072.031b6","type":"ui_button","z":"41f61d2.fbe09e4","tab":"52a903f3.ad56fc","group":"30e652f.d9de3ae","order":"4","width":"6","height":"1","name":"Button","label":"Click Me","color":"green","icon":"","payload":"Hello !","topic":"","x":130,"y":160,"wires":[["a09bb056.68216"]]},{"id":"a09bb056.68216","type":"ui_toast","z":"41f61d2.fbe09e4","name":"","x":310,"y":160,"wires":[]},{"id":"189cf871.681118","type":"ui_template","z":"41f61d2.fbe09e4","tab":"52a903f3.ad56fc","group":"a8ecb9.c60f4348","name":"Welcome","order":1,"format":"<h3>Welcome to Node-RED</h3>\n<p>On the right you will see some simple widgets to play with.\nTo get started making something a bit more useful click the menu icon at the top-left, and select <b>Editor</b>.\n</p>","storeOutMessages":false,"fwdInMessages":false,"x":80,"y":40,"wires":[[]]},{"id":"9944bbbe.242c68","type":"ui_link","z":"41f61d2.fbe09e4","name":"Worldmap","link":"http://localhost:8000/worldmap","icon":"language","target":"iframe","order":"2","x":80,"y":280,"wires":[]},{"id":"fcc1980e.81fb58","type":"worldmap","z":"41f61d2.fbe09e4","name":"","x":80,"y":320,"wires":[]}]
|
|
@ -9,13 +9,17 @@
|
|||
|
||||
"clean": "rm -rf ./dist ",
|
||||
|
||||
"pack": "npm run clean && npm run pack:osx && npm run pack:win",
|
||||
"pack": "npm run clean && electron-packager . Node-RED --icon=nodered.icns --all --out=dist",
|
||||
"pack:osx": "electron-packager . Node-RED --icon=nodered.icns --platform=darwin --arch=x64 --out=dist",
|
||||
"pack:win": "electron-packager . Node-RED --icon=nodered.icns --platform=win32 --arch=x64 --out=dist",
|
||||
"pack:win32": "electron-packager . Node-RED --icon=nodered.icns --platform=win32 --arch=ia32 --out=dist",
|
||||
"pack:linux": "electron-packager . Node-RED --icon=nodered.icns --platform=linux --arch=x64 --out=dist",
|
||||
"pack:linux32": "electron-packager . Node-RED --icon=nodered.icns --platform=linux --arch=ia32 --out=dist",
|
||||
|
||||
"build": "npm run build:osx",
|
||||
"build:osx": "npm run pack && appdmg appdmg.json dist/Node-RED.dmg"
|
||||
"build:osx": "npm run pack && appdmg appdmg.json dist/Node-RED.dmg",
|
||||
"build:linux32": "npm run pack:linux32 && fpm -s dir -t deb -f -n node-red-electron -v 0.13.4 -m conway@uk.ibm.com -a i386 -p dist dist/Node-RED-linux-ia32/",
|
||||
"build:linux": "npm run pack:linux && fpm -s dir -t deb -f -n node-red-electron -v 0.13.4 -m conway@uk.ibm.com -a x86_64 -p dist dist/Node-RED-linux-x64/"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
|
Ładowanie…
Reference in New Issue