Skip to content

Commit f201a66

Browse files
committed
Merge branch 'release/2.13.1'
2 parents 47fd9b5 + 7d22326 commit f201a66

9 files changed

+73
-47
lines changed

.travis.yml

+13-11
Original file line numberDiff line numberDiff line change
@@ -20,23 +20,25 @@ matrix:
2020
- os: osx
2121
osx_image: xcode8.3
2222

23-
before_install:
24-
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo snap install snapcraft --classic; fi
25-
26-
install:
27-
- yarn
28-
29-
script:
30-
- if [[ "$TRAVIS_PULL_REQUEST" != "false" ]]; then export CSC_IDENTITY_AUTO_DISCOVERY=false; fi
31-
- yarn release
32-
3323
branches:
3424
only:
3525
- master
3626
- develop
37-
- hotfix
27+
- /^hotfix\/.*$/
28+
- /^release\/.*$/
3829

3930
notifications:
4031
email:
4132
on_success: never
4233
on_failure: change
34+
35+
before_install:
36+
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo snap install snapcraft --classic; fi
37+
38+
install:
39+
- yarn
40+
- yarn list
41+
42+
script:
43+
- if [[ "$TRAVIS_PULL_REQUEST" != "false" ]]; then export CSC_IDENTITY_AUTO_DISCOVERY=false; fi
44+
- yarn release

HISTORY.md

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
<a name="2.13.1"></a>
2+
## 2.13.1 (2018-08-30)
3+
4+
5+
Fixes for MacOS and Windows builds.
6+
7+
8+
19
<a name="2.13.0"></a>
210
# 2.13.0 (2018-08-27)
311

appveyor.yml

+11-23
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,27 @@
1-
# build: off
2-
31
image: Visual Studio 2017
4-
2+
environment:
3+
nodejs_version: "8"
54
platform:
65
- x64
7-
8-
branches:
9-
only:
10-
- master
11-
- develop
12-
136
skip_tags: true
14-
15-
environment:
16-
nodejs_version: "8"
17-
7+
shallow_clone: true
8+
clone_depth: 1
189
cache:
1910
- "%LOCALAPPDATA%/Yarn"
2011
- node_modules -> package.json
21-
- app/node_modules -> app/package.json
22-
23-
shallow_clone: true
2412

25-
clone_depth: 1
13+
branches:
14+
only:
15+
- master
16+
- develop
17+
- /^hotfix\/.*$/
18+
- /^release\/.*$/
2619

2720
install:
2821
- ps: Install-Product node $env:nodejs_version $env:platform
2922
- set CI=true
3023
- yarn
31-
32-
test_script:
33-
- node --version
34-
- yarn --version
35-
# - yarn test
36-
# - yarn e2e
24+
- yarn list
3725

3826
build_script:
3927
- yarn release

electron-builder.json

+23-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
2-
"appId": "chat.rocket",
32
"files": [
43
"app/**/*",
54
"node_modules/**/*",
@@ -11,19 +10,38 @@
1110
"servers.json"
1211
],
1312
"mac": {
14-
"bundleVersion": "31",
15-
"helperBundleId": "chat.rocket.electron.helper",
1613
"category": "public.app-category.productivity",
1714
"target": [
18-
"default",
15+
"dmg",
1916
"pkg",
17+
"zip",
2018
"mas"
2119
],
20+
"icon": "build/icon.icns",
21+
"bundleVersion": "33",
22+
"helperBundleId": "chat.rocket.electron.helper",
23+
"type": "distribution",
24+
"appId": "chat.rocket",
2225
"artifactName": "rocketchat-${version}.${ext}"
2326
},
27+
"dmg": {
28+
"background": "build/background.png"
29+
},
30+
"pkg": {
31+
"isRelocatable": false,
32+
"overwriteAction": "upgrade"
33+
},
2434
"mas": {
35+
"entitlements": "build/entitlements.mas.plist",
36+
"entitlementsInherit": "build/entitlements.mas.inherit.plist",
2537
"artifactName": "rocketchat-${version}-mas.${ext}"
2638
},
39+
"win": {
40+
"target": [
41+
"nsis",
42+
"appx"
43+
]
44+
},
2745
"nsis": {
2846
"oneClick": false,
2947
"perMachine": false,
@@ -40,7 +58,7 @@
4058
"en-GB",
4159
"pt-BR"
4260
],
43-
"artifactName": "rocketchat-setup-${version}.${ext}"
61+
"artifactName": "rocketchat-${version}-${arch}.${ext}"
4462
},
4563
"linux": {
4664
"desktop": {
File renamed without changes.

package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "rocketchat",
33
"productName": "Rocket.Chat",
44
"description": "Rocket.Chat Native Cross-Platform Desktop Application via Electron.",
5-
"version": "2.13.0",
5+
"version": "2.13.1",
66
"author": "Rocket.Chat Support <[email protected]>",
77
"copyright": "© 2018, Rocket.Chat",
88
"homepage": "https://rocket.chat",
@@ -52,8 +52,9 @@
5252
"istanbul": "^0.4.5",
5353
"minimist": "^1.2.0",
5454
"mocha": "^5.2.0",
55-
"rollup": "^0.65.0",
55+
"rollup": "^0.64.1",
5656
"rollup-plugin-istanbul": "^2.0.1",
57+
"run-sequence": "^2.2.1",
5758
"spectron": "^3.8.0"
5859
},
5960
"devEngines": {

snap/snapcraft.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: rocketchat-desktop
2-
version: 2.13.0
2+
version: 2.14.0-develop
33
summary: Rocket.Chat
44
description: Rocket.Chat Native Cross-Platform Desktop Application via Electron.
55
confinement: strict

tasks/release.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
'use strict';
22

33
const gulp = require('gulp');
4+
const runSequence = require('run-sequence');
45
const { build } = require('electron-builder');
56
const config = require('../electron-builder.json');
67
const { getEnvName } = require('./utils');
78

89
const publish = getEnvName() !== 'production' ? 'never' : 'onTagOrDraft';
910
gulp.task('release:darwin', () => build({ publish, x64: true, mac: [] }));
10-
gulp.task('release:win32', () => build({ publish, x64: true, win: [ 'nsis', 'appx' ] }));
11+
gulp.task('release:win32', () => build({ publish, x64: true, ia32: true, win: [ 'nsis', 'appx' ] }));
1112
gulp.task('release:linux', (cb) => {
1213
build({ publish, x64: true, linux: [] })
1314
.then(() => build({ publish, ia32: true, linux: config.linux.target.filter(target => target !== 'snap') }))
1415
.then(() => cb(), (error) => cb(error));
1516
});
1617

17-
gulp.task('release', [ 'build-app', `release:${ process.platform }` ]);
18+
gulp.task('release', (cb) => runSequence('build-app', `release:${ process.platform }`, cb));

yarn.lock

+11-3
Original file line numberDiff line numberDiff line change
@@ -4384,9 +4384,9 @@ rollup-pluginutils@^2.0.1:
43844384
estree-walker "^0.5.2"
43854385
micromatch "^2.3.11"
43864386

4387-
rollup@^0.65.0:
4388-
version "0.65.0"
4389-
resolved "https://registry.yarnpkg.com/rollup/-/rollup-0.65.0.tgz#280db1252169b68fc3043028346b337dde453fba"
4387+
rollup@^0.64.1:
4388+
version "0.64.1"
4389+
resolved "https://registry.yarnpkg.com/rollup/-/rollup-0.64.1.tgz#9188ee368e5fcd43ffbc00ec414e72eeb5de87ba"
43904390
dependencies:
43914391
"@types/estree" "0.0.39"
43924392
"@types/node" "*"
@@ -4397,6 +4397,14 @@ run-async@^2.2.0:
43974397
dependencies:
43984398
is-promise "^2.1.0"
43994399

4400+
run-sequence@^2.2.1:
4401+
version "2.2.1"
4402+
resolved "https://registry.yarnpkg.com/run-sequence/-/run-sequence-2.2.1.tgz#1ce643da36fd8c7ea7e1a9329da33fc2b8898495"
4403+
dependencies:
4404+
chalk "^1.1.3"
4405+
fancy-log "^1.3.2"
4406+
plugin-error "^0.1.2"
4407+
44004408
rx-lite-aggregates@^4.0.8:
44014409
version "4.0.8"
44024410
resolved "https://registry.yarnpkg.com/rx-lite-aggregates/-/rx-lite-aggregates-4.0.8.tgz#753b87a89a11c95467c4ac1626c4efc4e05c67be"

0 commit comments

Comments
 (0)