CI builds and uploads all targets
// FREEBIE
This commit is contained in:
parent
08b7ce88d9
commit
bc71f4aa2b
4 changed files with 23 additions and 11 deletions
|
@ -8,8 +8,10 @@ dist: trusty
|
||||||
install:
|
install:
|
||||||
- yarn install
|
- yarn install
|
||||||
script:
|
script:
|
||||||
|
- yarn run generate
|
||||||
|
- ./node_modules/.bin/build --em.environment=$SIGNAL_ENV --config.mac.bundleVersion='$TRAVIS_BUILD_NUMBER' --publish=never
|
||||||
|
- grunt test-release:$TRAVIS_OS_NAME
|
||||||
- yarn test
|
- yarn test
|
||||||
- yarn ci-build
|
|
||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
- SIGNAL_ENV: production
|
- SIGNAL_ENV: production
|
||||||
|
@ -21,4 +23,4 @@ notifications:
|
||||||
addons:
|
addons:
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- $(ls ./dist/*.zip | tr "\n" ":")
|
- $(ls ./dist/*.* | tr "\n" ":")
|
||||||
|
|
|
@ -217,8 +217,8 @@ module.exports = function(grunt) {
|
||||||
cmd: 'tx pull'
|
cmd: 'tx pull'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
release: {
|
'test-release': {
|
||||||
mac: {
|
osx: {
|
||||||
archive: 'mac/Signal.app/Contents/Resources/app.asar',
|
archive: 'mac/Signal.app/Contents/Resources/app.asar',
|
||||||
},
|
},
|
||||||
mas: {
|
mas: {
|
||||||
|
|
10
appveyor.yml
10
appveyor.yml
|
@ -10,14 +10,16 @@ install:
|
||||||
- ps: Install-Product node 6 x64
|
- ps: Install-Product node 6 x64
|
||||||
- yarn install
|
- yarn install
|
||||||
|
|
||||||
|
build_script:
|
||||||
|
- yarn run generate
|
||||||
|
- ./node_modules/.bin/build --em.environment=%SIGNAL_ENV% --publish=never
|
||||||
|
|
||||||
test_script:
|
test_script:
|
||||||
|
- ./node_modules/.bin/grunt test-release:win
|
||||||
- yarn test
|
- yarn test
|
||||||
|
|
||||||
build_script:
|
|
||||||
- yarn ci-build
|
|
||||||
|
|
||||||
artifacts:
|
artifacts:
|
||||||
- path: dist/*.zip
|
- path: dist/*.*
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
SIGNAL_ENV: production
|
SIGNAL_ENV: production
|
||||||
|
|
14
package.json
14
package.json
|
@ -39,7 +39,6 @@
|
||||||
"icon-gen": "electron-icon-maker --input=images/icon_1024.png --output=./build",
|
"icon-gen": "electron-icon-maker --input=images/icon_1024.png --output=./build",
|
||||||
"generate": "npm run icon-gen && grunt",
|
"generate": "npm run icon-gen && grunt",
|
||||||
"build": "build --em.environment=$SIGNAL_ENV",
|
"build": "build --em.environment=$SIGNAL_ENV",
|
||||||
"ci-build": "npm run generate && npm run build -- --config.mac.bundleVersion='$TRAVIS_BUILD_NUMBER' --config.mac.target=zip --config.win.target=zip --config.linux.target=zip --publish=never",
|
|
||||||
"dist": "npm run generate && npm run build",
|
"dist": "npm run generate && npm run build",
|
||||||
"pack": "npm run dist -- --dir",
|
"pack": "npm run dist -- --dir",
|
||||||
"pack-prod": "SIGNAL_ENV=production npm run pack",
|
"pack-prod": "SIGNAL_ENV=production npm run pack",
|
||||||
|
@ -72,6 +71,10 @@
|
||||||
"zip"
|
"zip"
|
||||||
],
|
],
|
||||||
"artifactName": "${productName}-${version}.${ext}",
|
"artifactName": "${productName}-${version}.${ext}",
|
||||||
|
"target": [
|
||||||
|
"dmg",
|
||||||
|
"zip"
|
||||||
|
],
|
||||||
"bundleVersion": "1"
|
"bundleVersion": "1"
|
||||||
},
|
},
|
||||||
"win": {
|
"win": {
|
||||||
|
@ -83,11 +86,16 @@
|
||||||
"bucket": "updates.signal.org",
|
"bucket": "updates.signal.org",
|
||||||
"path": "desktop",
|
"path": "desktop",
|
||||||
"acl": "public-read"
|
"acl": "public-read"
|
||||||
}
|
},
|
||||||
|
"target": [
|
||||||
|
"nsis",
|
||||||
|
"zip"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"linux": {
|
"linux": {
|
||||||
"target": [
|
"target": [
|
||||||
"deb"
|
"deb",
|
||||||
|
"zip"
|
||||||
],
|
],
|
||||||
"icon": "build/icons/png"
|
"icon": "build/icons/png"
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue