Skip to content

Commit a1347e7

Browse files
committed
Correct vector to webapp & platform update URLs
1 parent c7635a3 commit a1347e7

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

‎electron/src/electron-main.js‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const VectorMenu = require('./vectormenu');
3030

3131
let vectorConfig = {};
3232
try {
33-
vectorConfig = require('../../vector/config.json');
33+
vectorConfig = require('../../webapp/config.json');
3434
} catch (e) {
3535
// it would be nice to check the error code here and bail if the config
3636
// is unparseable, but we get MODULE_NOT_FOUND in the case of a missing
@@ -112,9 +112,11 @@ function startAutoUpdate(update_url) {
112112
// 204 No Content. On windows it takes a base path and looks for
113113
// files under that path.
114114
if (process.platform == 'darwin') {
115-
electron.autoUpdater.setFeedURL(update_url);
115+
// macos only has 64 bit
116+
electron.autoUpdater.setFeedURL(update_url + 'macos/');
116117
} else if (process.platform == 'win32') {
117-
electron.autoUpdater.setFeedURL(update_url + 'win32/');
118+
// We split by 32/64 bit too: the builds are different and entirely separate
119+
electron.autoUpdater.setFeedURL(update_url + 'win32/' + process.arch + '/');
118120
} else {
119121
// Squirrel / electron only supports auto-update on these two platforms.
120122
// I'm not even going to try to guess which feed style they'd use if they

0 commit comments

Comments
 (0)