Skip to content

Commit 6c1ed3a

Browse files
committed
Merge pull request electron#141 from electron/add-version-to-update-url
Add version to update url
2 parents 081948b + b7648a7 commit 6c1ed3a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

auto-updater.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
const app = require('electron').app
12
const autoUpdater = require('electron').autoUpdater
23
const Menu = require('electron').Menu
34

@@ -29,7 +30,7 @@ exports.initialize = function () {
2930
exports.updateMenu()
3031
})
3132

32-
autoUpdater.setFeedURL('https://electron-api-demos.githubapp.com/updates')
33+
autoUpdater.setFeedURL(`https://electron-api-demos.githubapp.com/updates?version=${app.getVersion()}`)
3334
autoUpdater.checkForUpdates()
3435
}
3536

0 commit comments

Comments
 (0)