forked from matrix/element-web
Merge pull request #2917 from vector-im/dbkr/fix_windows_shortcuts
Hopefully fix Windows shortcuts
This commit is contained in:
commit
717aa94ba9
|
@ -3,7 +3,12 @@ const spawn = require('child_process').spawn;
|
||||||
const app = require('electron').app;
|
const app = require('electron').app;
|
||||||
|
|
||||||
function run_update_exe(args, done) {
|
function run_update_exe(args, done) {
|
||||||
const updateExe = path.resolve(path.dirname(process.execPath), 'Update.exe');
|
// Invokes Squirrel's Update.exe which will do things for us like create shortcuts
|
||||||
|
// Note that there's an Update.exe in the app-x.x.x directory and one in the parent
|
||||||
|
// directory: we need to run the one in the parent directory, because it discovers
|
||||||
|
// information about the app by inspecting the directory it's run from.
|
||||||
|
const updateExe = path.resolve(path.dirname(process.execPath), '..', 'Update.exe');
|
||||||
|
console.log('Spawning `%s` with args `%s`', updateExe, args);
|
||||||
spawn(updateExe, args, {
|
spawn(updateExe, args, {
|
||||||
detached: true
|
detached: true
|
||||||
}).on('close', done);
|
}).on('close', done);
|
||||||
|
|
|
@ -94,7 +94,8 @@
|
||||||
"chokidar": "^1.6.1",
|
"chokidar": "^1.6.1",
|
||||||
"cpx": "^1.3.2",
|
"cpx": "^1.3.2",
|
||||||
"css-raw-loader": "^0.1.1",
|
"css-raw-loader": "^0.1.1",
|
||||||
"electron-builder": "^10.4.1",
|
"electron-builder": "^11.2.4",
|
||||||
|
"electron-builder-squirrel-windows": "^11.2.1",
|
||||||
"emojione": "^2.2.3",
|
"emojione": "^2.2.3",
|
||||||
"expect": "^1.16.0",
|
"expect": "^1.16.0",
|
||||||
"fs-extra": "^0.30.0",
|
"fs-extra": "^0.30.0",
|
||||||
|
|
Loading…
Reference in New Issue