Skip to content

Commit

Permalink
Rolling release setup (nukeop#392)
Browse files Browse the repository at this point in the history
* Publish on every commit

* Correct malformed json

* Create releaseInfo key

* Publish always
  • Loading branch information
nukeop authored Jul 6, 2019
1 parent 28d36cc commit a215a34
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ matrix:
language: node_js
node_js: "8"

env:
global:
- GITHASH=${TRAVIS_COMMIT::6}

before_install:
- if [ $TRAVIS_OS_NAME = linux ]; then sudo apt-get install libdbus-1-dev -y; fi
Expand Down
15 changes: 11 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
"test": "mocha --require babel-register --require babel-polyfill --require ignore-styles --timeout 10000 --prof",
"pack": "electron-builder --dir -c.extraMetadata.main=dist/bundle.electron.js",
"dist": "babel-node electron-builder -c.extraMetadata.main=dist/bundle.electron.js",
"build:linux": "electron-builder -c.extraMetadata.main=dist/bundle.electron.js --linux",
"build:windows": "electron-builder -c.extraMetadata.main=dist/bundle.electron.js --windows",
"build:macos": "electron-builder -c.extraMetadata.main=dist/bundle.electron.js --macos",
"build:linux": "electron-builder -c.extraMetadata.main=dist/bundle.electron.js --linux --publish always",
"build:windows": "electron-builder -c.extraMetadata.main=dist/bundle.electron.js --windows --publish always",
"build:macos": "electron-builder -c.extraMetadata.main=dist/bundle.electron.js --macos --publish always",
"build:all": "electron-builder -c.extraMetadata.main=dist/bundle.electron.js -mwl",
"lint": "eslint app",
"i18n": "sync-i18n --files 'app/locales/*.json' --primary en --languages fr nl de dk es pl zh ru --space 2"
Expand Down Expand Up @@ -112,7 +112,7 @@
"classnames": "^2.2.5",
"css-loader": "^1.0.0",
"electron": "^4.0.2",
"electron-builder": "^20.38.5",
"electron-builder": "^20.44.4",
"electron-devtools-installer": "^2.2.4",
"enzyme": "^3.3.0",
"enzyme-adapter-react-16": "^1.3.1",
Expand Down Expand Up @@ -158,6 +158,7 @@
"build": {
"appId": "nuclear",
"productName": "nuclear",
"artifactName": "${productName}-${env.GITHASH}.${ext}",
"directories": {
"output": "release"
},
Expand All @@ -169,6 +170,9 @@
"extraFiles": [
"resources"
],
"releaseInfo": {
"releaseName": "Nuclear ${env.GITHASH}"
},
"linux": {
"desktop": {
"Name": "Nuclear",
Expand Down Expand Up @@ -196,6 +200,9 @@
"nsis",
"portable"
]
},
"nsis": {
"artifactName": "${productName} Setup ${env.GITHASH}.${ext}"
}
}
}

0 comments on commit a215a34

Please sign in to comment.