Skip to content

Commit 3023ea5

Browse files
committed
Merge branch 'release-v0.9.6'
2 parents 61251d2 + 22060ac commit 3023ea5

13 files changed

Lines changed: 175 additions & 34 deletions

File tree

‎.travis.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ node_js:
33
- 6 # node v6, to match jenkins
44
install:
55
- npm install
6+
- (cd node_modules/matrix-js-sdk && npm install)
67
- (cd node_modules/matrix-react-sdk && npm run build)

‎CHANGELOG.md‎

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,32 @@
1+
Changes in [0.9.6](https://github.com/vector-im/riot-web/releases/tag/v0.9.6) (2017-01-16)
2+
==========================================================================================
3+
[Full Changelog](https://github.com/vector-im/riot-web/compare/v0.9.6-rc.1...v0.9.6)
4+
5+
* Update to matrix-js-sdk 0.9.6 for video calling fix
6+
7+
Changes in [0.9.6-rc.1](https://github.com/vector-im/riot-web/releases/tag/v0.9.6-rc.1) (2017-01-13)
8+
====================================================================================================
9+
[Full Changelog](https://github.com/vector-im/riot-web/compare/v0.9.5...v0.9.6-rc.1)
10+
11+
* Build the js-sdk in the CI script
12+
[\#2920](https://github.com/vector-im/riot-web/pull/2920)
13+
* Hopefully fix Windows shortcuts
14+
[\#2917](https://github.com/vector-im/riot-web/pull/2917)
15+
* Update README now the js-sdk has a transpile step
16+
[\#2921](https://github.com/vector-im/riot-web/pull/2921)
17+
* Use the role for 'toggle dev tools'
18+
[\#2915](https://github.com/vector-im/riot-web/pull/2915)
19+
* Enable screen sharing easter-egg in desktop app
20+
[\#2909](https://github.com/vector-im/riot-web/pull/2909)
21+
* make electron send email validation URLs with a nextlink of riot.im
22+
[\#2808](https://github.com/vector-im/riot-web/pull/2808)
23+
* add Debian Stretch install steps to readme
24+
[\#2809](https://github.com/vector-im/riot-web/pull/2809)
25+
* Update desktop build instructions fixes #2792
26+
[\#2793](https://github.com/vector-im/riot-web/pull/2793)
27+
* CSS for the delete threepid button
28+
[\#2784](https://github.com/vector-im/riot-web/pull/2784)
29+
130
Changes in [0.9.5](https://github.com/vector-im/riot-web/releases/tag/v0.9.5) (2016-12-24)
231
==========================================================================================
332
[Full Changelog](https://github.com/vector-im/riot-web/compare/v0.9.4...v0.9.5)

‎README.md‎

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,14 @@ Note that Chrome does not allow microphone or webcam access for sites served
2525
over http (except localhost), so for working VoIP you will need to serve Riot
2626
over https.
2727

28+
### Installation Steps for Debian Stretch
29+
1. Add the repository to your sources.list using either of the following two options:
30+
- Directly to sources.list: `echo "deb https://riot.im/packages/debian/ stretch main" | sudo tee -a /etc/apt/sources.list`
31+
- As a separate entry in sources.list.d: `echo "deb https://riot.im/packages/debian/ stretch main" | sudo tee /etc/apt/sources.list.d/riot.list`
32+
2. Add the gpg signing key for the riot repository: `curl -s https://riot.im/packages/debian/repo-key.asc | sudo apt-key add -`
33+
3. Update your package lists: `sudo apt-get update`
34+
4. Install Riot: `sudo apt-get install riot-web`
35+
2836
Important Security Note
2937
=======================
3038

@@ -48,10 +56,14 @@ to build.
4856
1. Clone the repo: `git clone https://github.com/vector-im/riot-web.git`
4957
1. Switch to the riot-web directory: `cd riot-web`
5058
1. Install the prerequisites: `npm install`
51-
1. If you are using the `develop` branch of riot-web, you will probably need
52-
to rebuild one of the dependencies, due to
53-
https://github.com/npm/npm/issues/3055: `(cd node_modules/matrix-react-sdk
54-
&& npm install)`
59+
1. If you are using the `develop` branch of vector-web, you will probably need
60+
to rebuild some of the dependencies, due to
61+
https://github.com/npm/npm/issues/3055:
62+
63+
```
64+
(cd node_modules/matrix-js-sdk && npm install)
65+
(cd node_modules/matrix-react-sdk && npm install)
66+
```
5567
1. Configure the app by copying `config.sample.json` to `config.json` and
5668
modifying it (see below for details)
5769
1. `npm run dist` to build a tarball to deploy. Untaring this file will give
@@ -233,10 +245,10 @@ Finally, build and start Riot itself:
233245
disables caching, so do NOT use it in production.
234246
1. Open http://127.0.0.1:8080/ in your browser to see your newly built Riot.
235247
236-
When you make changes to `matrix-react-sdk`, you will need to run `npm run
237-
build` in the relevant directory. You can do this automatically by instead
238-
running `npm start` in the directory, to start a development builder which
239-
will watch for changes to the files and rebuild automatically.
248+
When you make changes to `matrix-react-sdk` or `matrix-js-sdk`, you will need
249+
to run `npm run build` in the relevant directory. You can do this automatically
250+
by instead running `npm start` in the directory, to start a development builder
251+
which will watch for changes to the files and rebuild automatically.
240252
241253
If you add or remove any components from the Riot skin, you will need to rebuild
242254
the skin's index by running, `npm run reskindex`.

‎electron/src/electron-main.js‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,8 @@ process.on('uncaughtException', function (error) {
148148

149149
electron.ipcMain.on('install_update', installUpdate);
150150

151+
electron.app.commandLine.appendSwitch('--enable-usermedia-screen-capturing');
152+
151153
electron.app.on('ready', () => {
152154
if (vectorConfig.update_base_url) {
153155
console.log("Starting auto update with base URL: " + vectorConfig.update_base_url);

‎electron/src/squirrelhooks.js‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@ const spawn = require('child_process').spawn;
33
const app = require('electron').app;
44

55
function run_update_exe(args, done) {
6-
const updateExe = path.resolve(path.dirname(process.execPath), 'Update.exe');
6+
// Invokes Squirrel's Update.exe which will do things for us like create shortcuts
7+
// Note that there's an Update.exe in the app-x.x.x directory and one in the parent
8+
// directory: we need to run the one in the parent directory, because it discovers
9+
// information about the app by inspecting the directory it's run from.
10+
const updateExe = path.resolve(path.dirname(process.execPath), '..', 'Update.exe');
11+
console.log('Spawning `%s` with args `%s`', updateExe, args);
712
spawn(updateExe, args, {
813
detached: true
914
}).on('close', done);

‎electron/src/vectormenu.js‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,7 @@ const template = [
7272
role: 'togglefullscreen'
7373
},
7474
{
75-
label: 'Toggle Developer Tools',
76-
accelerator: process.platform == 'darwin' ? 'Alt+Command+I' : 'Ctrl+Shift+I',
77-
click: function(item, focusedWindow) {
78-
if (focusedWindow) focusedWindow.toggleDevTools();
79-
}
75+
role: 'toggledevtools'
8076
}
8177
]
8278
},

‎package.json‎

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "riot-web",
33
"productName": "Riot",
44
"main": "electron/src/electron-main.js",
5-
"version": "0.9.5",
5+
"version": "0.9.6",
66
"description": "A feature-rich client for Matrix.org",
77
"author": "Vector Creations Ltd.",
88
"repository": {
@@ -27,26 +27,22 @@
2727
"matrix-react-parent": "matrix-react-sdk",
2828
"scripts": {
2929
"reskindex": "reskindex -h src/header",
30-
"build:res": "cpx \"{src/skins/vector/fonts,src/skins/vector/img}/**\" webapp/ && cpx \"{res/media,res/vector-icons}/**\" webapp/",
31-
"build:config": "cpx config.json webapp/",
32-
"build:emojione": "cpx \"node_modules/emojione/assets/svg/*\" webapp/emojione/svg/",
30+
"build:res": "node scripts/copy-res.js",
3331
"build:modernizr": "modernizr -c .modernizr.json -d src/vector/modernizr.js",
3432
"build:css": "mkdirp build && catw \"src/skins/vector/css/**/*.css\" -o build/components.css --no-watch",
3533
"build:compile": "babel --source-maps -d lib src",
3634
"build:bundle": "NODE_ENV=production webpack -p --progress",
3735
"build:bundle:dev": "webpack --optimize-occurence-order --progress",
3836
"build:electron": "npm run clean && npm run build && build -wml --ia32 --x64",
39-
"build": "node scripts/babelcheck.js && npm run build:res && npm run build:config && npm run build:emojione && npm run build:css && npm run build:bundle",
40-
"build:dev": "node scripts/babelcheck.js && npm run build:res && npm run build:config && npm run build:emojione && npm run build:css && npm run build:bundle:dev",
37+
"build": "node scripts/babelcheck.js && npm run build:res && npm run build:css && npm run build:bundle",
38+
"build:dev": "node scripts/babelcheck.js && npm run build:res && npm run build:css && npm run build:bundle:dev",
4139
"dist": "scripts/package.sh",
42-
"start:res": "parallelshell \"cpx -w \\\"{src/skins/vector/fonts,src/skins/vector/img}/**\\\" webapp/\" \"cpx -w \\\"{res/media,res/vector-icons}/**\\\" webapp/\"",
43-
"start:config": "cpx -w config.json webapp/",
44-
"start:emojione": "cpx \"node_modules/emojione/assets/svg/*\" webapp/emojione/svg/ -w",
40+
"start:res": "node scripts/copy-res.js -w",
4541
"start:js": "webpack-dev-server -w --progress",
4642
"start:js:prod": "NODE_ENV=production webpack-dev-server -w --progress",
47-
"start:skins:css": "mkdirp build && catw \"src/skins/vector/css/**/*.css\" -o build/components.css",
48-
"start": "node scripts/babelcheck.js && parallelshell \"npm run start:emojione\" \"npm run start:res\" \"npm run start:config\" \"npm run start:js\" \"npm run start:skins:css\"",
49-
"start:prod": "parallelshell \"npm run start:emojione\" \"npm run start:js:prod\" \"npm run start:skins:css\"",
43+
"start:css": "mkdirp build && catw \"src/skins/vector/css/**/*.css\" -o build/components.css",
44+
"start": "node scripts/babelcheck.js && parallelshell \"npm run start:res\" \"npm run start:js\" \"npm run start:css\"",
45+
"start:prod": "parallelshell \"npm run start:res\" \"npm run start:js:prod\" \"npm run start:css\"",
5046
"clean": "rimraf build lib webapp electron/dist",
5147
"prepublish": "npm run build:compile",
5248
"test": "karma start --single-run=true --autoWatch=false --browsers PhantomJS --colors=false",
@@ -66,8 +62,13 @@
6662
"gfm.css": "^1.1.1",
6763
"highlight.js": "^9.0.0",
6864
"linkifyjs": "^2.1.3",
65+
<<<<<<< HEAD
6966
"matrix-js-sdk": "0.7.2",
7067
"matrix-react-sdk": "0.8.4",
68+
=======
69+
"matrix-js-sdk": "0.7.4",
70+
"matrix-react-sdk": "0.8.5",
71+
>>>>>>> release-v0.9.6
7172
"modernizr": "^3.1.0",
7273
"q": "^1.4.1",
7374
"react": "^15.4.0",
@@ -95,9 +96,11 @@
9596
"babel-preset-react": "^6.16.0",
9697
"babel-preset-stage-2": "^6.17.0",
9798
"catw": "^1.0.1",
99+
"chokidar": "^1.6.1",
98100
"cpx": "^1.3.2",
99101
"css-raw-loader": "^0.1.1",
100-
"electron-builder": "^10.4.1",
102+
"electron-builder": "^11.2.4",
103+
"electron-builder-squirrel-windows": "^11.2.1",
101104
"emojione": "^2.2.3",
102105
"expect": "^1.16.0",
103106
"fs-extra": "^0.30.0",
@@ -111,6 +114,7 @@
111114
"karma-phantomjs-launcher": "^1.0.0",
112115
"karma-sourcemap-loader": "^0.3.7",
113116
"karma-webpack": "^1.7.0",
117+
"minimist": "^1.2.0",
114118
"mkdirp": "^0.5.1",
115119
"mocha": "^2.4.5",
116120
"parallelshell": "^1.2.0",
@@ -128,7 +132,7 @@
128132
"build": {
129133
"appId": "im.riot.app",
130134
"category": "Network",
131-
"electronVersion": "1.4.11",
135+
"electronVersion": "1.4.14",
132136
"//asar=false": "https://github.com/electron-userland/electron-builder/issues/675",
133137
"asar": false,
134138
"dereference": true,

‎scripts/copy-res.js‎

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
#!/usr/bin/env node
2+
3+
// copies the resources into the webapp directory.
4+
//
5+
6+
// cpx includes globbed parts of the filename in the destination, but excludes
7+
// common parents. Hence, "res/{a,b}/**": the output will be "dest/a/..." and
8+
// "dest/b/...".
9+
const COPY_LIST = [
10+
["res/{media,vector-icons}/**", "webapp"],
11+
["src/skins/vector/{fonts,img}/**", "webapp"],
12+
["node_modules/emojione/assets/svg/*", "webapp/emojione/svg/"],
13+
["./config.json", "webapp", {directwatch: 1}],
14+
];
15+
16+
const parseArgs = require('minimist');
17+
const Cpx = require('cpx');
18+
const chokidar = require('chokidar');
19+
20+
const argv = parseArgs(
21+
process.argv.slice(2), {}
22+
);
23+
24+
var watch = argv.w;
25+
var verbose = argv.v;
26+
27+
function errCheck(err) {
28+
if (err) {
29+
console.error(err.message);
30+
process.exit(1);
31+
}
32+
}
33+
34+
function next(i, err) {
35+
errCheck(err);
36+
37+
if (i >= COPY_LIST.length) {
38+
return;
39+
}
40+
41+
const ent = COPY_LIST[i];
42+
const source = ent[0];
43+
const dest = ent[1];
44+
const opts = ent[2] || {};
45+
46+
const cpx = new Cpx.Cpx(source, dest);
47+
48+
if (verbose) {
49+
cpx.on("copy", (event) => {
50+
console.log(`Copied: ${event.srcPath} --> ${event.dstPath}`);
51+
});
52+
cpx.on("remove", (event) => {
53+
console.log(`Removed: ${event.path}`);
54+
});
55+
}
56+
57+
const cb = (err) => {next(i+1, err)};
58+
59+
if (watch) {
60+
if (opts.directwatch) {
61+
// cpx -w creates a watcher for the parent of any files specified,
62+
// which in the case of config.json is '.', which inevitably takes
63+
// ages to crawl. So we create our own watcher on the files
64+
// instead.
65+
const copy = () => {cpx.copy(errCheck)};
66+
chokidar.watch(source)
67+
.on('add', copy)
68+
.on('change', copy)
69+
.on('ready', cb)
70+
.on('error', errCheck);
71+
} else {
72+
cpx.on('watch-ready', cb);
73+
cpx.on("watch-error", cb);
74+
cpx.watch();
75+
}
76+
} else {
77+
cpx.copy(cb);
78+
}
79+
}
80+
81+
next(0);

‎scripts/jenkins.sh‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ tar -C olm -xz < olm/olm-*.tgz
1919
rm -r node_modules/olm
2020
cp -r olm/package node_modules/olm
2121

22-
# we may be using a dev branch of react-sdk, in which case we need to build it
22+
# we may be using dev branches of js-sdk and react-sdk, in which case we need to build them
23+
(cd node_modules/matrix-js-sdk && npm run build)
2324
(cd node_modules/matrix-react-sdk && npm run build)
2425

2526
# run the mocha tests

‎src/components/structures/CompatibilityPage.js‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,8 @@ module.exports = React.createClass({
4545
available or experimental in your current browser.
4646
</p>
4747
<p>
48-
Please install <a href="https://www.google.com/chrome">Chrome</a> or
49-
<a href="https://getfirefox.com">Firefox</a> for the best experience.
50-
<a href="http://apple.com/safari">Safari</a> and
51-
<a href="http://opera.com">Opera</a> work too.
48+
Please install <a href="https://www.google.com/chrome">Chrome</a> or <a href="https://getfirefox.com">Firefox</a> for
49+
the best experience. <a href="http://apple.com/safari">Safari</a> and <a href="http://opera.com">Opera</a> work too.
5250
</p>
5351
<p>
5452
With your current browser, the look and feel of the application may

0 commit comments

Comments
 (0)