Fix Windows releases

This commit is contained in:
Tasso Evangelista 2018-08-30 13:44:10 -03:00
parent f55b8ab805
commit f70e6b0bc9
3 changed files with 8 additions and 3 deletions

View file

@ -9,7 +9,6 @@ clone_depth: 1
cache:
- "%LOCALAPPDATA%/Yarn"
- node_modules -> package.json
- app/node_modules -> app/package.json
branches:
only:

View file

@ -36,6 +36,12 @@
"entitlementsInherit": "build/entitlements.mas.inherit.plist",
"artifactName": "rocketchat-${version}-mas.${ext}"
},
"win": {
"target": [
"nsis",
"appx"
]
},
"nsis": {
"oneClick": false,
"perMachine": false,
@ -52,7 +58,7 @@
"en-GB",
"pt-BR"
],
"artifactName": "rocketchat-setup-${version}.${ext}"
"artifactName": "rocketchat-${version}-${arch}.${ext}"
},
"linux": {
"desktop": {

View file

@ -8,7 +8,7 @@ const { getEnvName } = require('./utils');
const publish = getEnvName() !== 'production' ? 'never' : 'onTagOrDraft';
gulp.task('release:darwin', () => build({ publish, x64: true, mac: [] }));
gulp.task('release:win32', () => build({ publish, x64: true, win: [ 'nsis', 'appx' ] }));
gulp.task('release:win32', () => build({ publish, x64: true, ia32: true, win: [ 'nsis', 'appx' ] }));
gulp.task('release:linux', (cb) => {
build({ publish, x64: true, linux: [] })
.then(() => build({ publish, ia32: true, linux: config.linux.target.filter(target => target !== 'snap') }))