kopia lustrzana https://github.com/dceejay/electron-node-red
Add travis to package
rodzic
eb36d71a1a
commit
8051c7ae2a
|
@ -0,0 +1,31 @@
|
|||
# Actually to use the Node, to move in the OS X environment by specifying the Objective-C
|
||||
language: objective-c
|
||||
cache:
|
||||
directories:
|
||||
- Node_modules
|
||||
env:
|
||||
# Node in order to install it by running the command individually, here to specify the version
|
||||
- NODE_VERSION = "4.4"
|
||||
before_install:
|
||||
# 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
|
||||
- Source /tmp/.nvm/nvm.sh
|
||||
# To install the Node of the specified version
|
||||
- Nvm install $ NODE_VERSION
|
||||
# To enable the Node of the specified version
|
||||
- Nvm use --delete-prefix $ NODE_VERSION
|
||||
- Node --version
|
||||
install:
|
||||
- Npm install
|
||||
script:
|
||||
- Npm test
|
||||
before_deploy:
|
||||
# Brew is the latest state
|
||||
- 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
|
||||
# Perform to build + installer created + zip with respect to each platform
|
||||
- Npm run build
|
30
package.json
30
package.json
|
@ -4,8 +4,20 @@
|
|||
"description": "Electron Node-RED template",
|
||||
"main": "main.js",
|
||||
"scripts": {
|
||||
"start": "electron main.js"
|
||||
},
|
||||
"start": "electron main.js",
|
||||
"test": "echo \" Warning: no test specified \"",
|
||||
|
||||
"clean": "rm -rf ./dist ",
|
||||
"clean: osx": "rm -rf ./dist/osx",
|
||||
"clean: win": "rm -rf ./dist/win",
|
||||
|
||||
"pack": "npm run pack : osx",
|
||||
"pack: osx": "npm run clean:. osx && electron-packager electron-node-red Node-RED --out = dist/osx --icon=nodered.icns --platform=darwin --arch=x64 ",
|
||||
|
||||
"build": "npm run build : osx",
|
||||
"build: osx": "npm run pack: osx && appdmg appdmg.json dist/NodeRED.dmg",
|
||||
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/natcl/electron-node-red.git"
|
||||
|
@ -21,13 +33,19 @@
|
|||
"start",
|
||||
"node-red"
|
||||
],
|
||||
"author": "Nathanaël Lécaudé",
|
||||
"contributors": [
|
||||
{"name":"Nathanaël Lécaudé"},
|
||||
{"name":"Dave Conway-Jones"}
|
||||
],
|
||||
"license": "CC0-1.0",
|
||||
"bugs": {
|
||||
"url": "https://github.com/natcl/electron-node-red/issues"
|
||||
"url": "https://github.com/dceejay/electron-node-red/issues"
|
||||
},
|
||||
"homepage": "https://github.com/natcl/electron-node-red#readme",
|
||||
"homepage": "https://github.com/dceejay/electron-node-red#readme",
|
||||
"devDependencies": {
|
||||
"electron-prebuilt": "^0.37.8"
|
||||
"electron-prebuilt": "^0.37.8",
|
||||
"electron-builder": "^2.5.0",
|
||||
"appdmg": "*",
|
||||
"electron-packager": "^5.2.0",
|
||||
}
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue