Skip to content

Commit

Permalink
Merge branch 'release-v0.9.5'
Browse files Browse the repository at this point in the history
  • Loading branch information
ara4n committed Dec 24, 2016
2 parents e8eadc5 + 7474088 commit 6e0f83a
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 7 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
Changes in [0.9.5](https://github.com/vector-im/riot-web/releases/tag/v0.9.5) (2016-12-24)
==========================================================================================
[Full Changelog](https://github.com/vector-im/riot-web/compare/v0.9.4...v0.9.5)

* make electron send email validation URLs with a nextlink of riot.im rather than file:///
* add gnu-tar to debian electron build deps
* fix win32 shortcut in start menu

Changes in [0.9.4](https://github.com/vector-im/riot-web/releases/tag/v0.9.4) (2016-12-22)
==========================================================================================
[Full Changelog](https://github.com/vector-im/riot-web/compare/v0.9.3...v0.9.4)
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ The only platform that can build packages for all three platforms is macOS:
```
brew install wine --without-x11
brew install mono
brew install gnu-tar
npm install
npm run build:electron
```
Expand Down
2 changes: 1 addition & 1 deletion electron/src/squirrelhooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const spawn = require('child_process').spawn;
const app = require('electron').app;

function run_update_exe(args, done) {
const updateExe = path.resolve(path.dirname(process.execPath), '..', 'Update.exe');
const updateExe = path.resolve(path.dirname(process.execPath), 'Update.exe');
spawn(updateExe, args, {
detached: true
}).on('close', done);
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "riot-web",
"productName": "Riot",
"main": "electron/src/electron-main.js",
"version": "0.9.4",
"version": "0.9.5",
"description": "A feature-rich client for Matrix.org",
"author": "Vector Creations Ltd.",
"repository": {
Expand Down Expand Up @@ -67,7 +67,7 @@
"highlight.js": "^9.0.0",
"linkifyjs": "^2.1.3",
"matrix-js-sdk": "0.7.2",
"matrix-react-sdk": "0.8.3",
"matrix-react-sdk": "0.8.4",
"modernizr": "^3.1.0",
"q": "^1.4.1",
"react": "^15.4.0",
Expand Down
17 changes: 13 additions & 4 deletions src/vector/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,11 +136,20 @@ var onNewScreen = function(screen) {
// click back to the client having registered.
// It's up to us to recognise if we're loaded with
// this URL and tell MatrixClient to resume registration.
//
// If we're in electron, we should never pass through a file:// URL otherwise
// the identity server will try to 302 the browser to it, which breaks horribly.
// so in that instance, hardcode to use riot.im/app for now instead.
var makeRegistrationUrl = function() {
return window.location.protocol + '//' +
window.location.host +
window.location.pathname +
'#/register';
if (window.location.protocol === "file:") {
return 'https://riot.im/app/#/register';
}
else {
return window.location.protocol + '//' +
window.location.host +
window.location.pathname +
'#/register';
}
}

window.addEventListener('hashchange', onHashChange);
Expand Down

0 comments on commit 6e0f83a

Please sign in to comment.