10.diff (2876B)
1 diff --git a/app/main.js b/app/main.js 2 index 3277eef..e275dd8 100644 3 --- a/app/main.js 4 +++ b/app/main.js 5 @@ -9,18 +9,35 @@ let win 6 function update () { 7 console.warn("Starting Autoupdater") 8 console.warn(app.getVersion()) 9 - var feedUrl = 'https://ls-desktop.herokuapp.com/update/' + os.platform() + '/' + app.getVersion() + '/'; 10 + var feedUrl = 'http://ls-desktop.herokuapp.com/update/' + os.platform() + '/' + app.getVersion() + '/'; 11 autoUpdater.setFeedURL(feedUrl); 12 13 - autoUpdater.checkForUpdates() 14 + console.log('created'); 15 + autoUpdater.on('checking-for-update', function() { 16 + console.log("checking-for-update"); 17 + }); 18 + 19 + autoUpdater.on('update-available', function() { 20 + console.log("update-available"); 21 + }); 22 + 23 + autoUpdater.on('update-not-available', function() { 24 + console.log("update-not-available"); 25 + }); 26 + 27 + autoUpdater.on('update-downloaded', function() { 28 + console.log(" update-downloaded"); 29 + }); 30 + 31 + setTimeout(function() {autoUpdater.checkForUpdates()}, 10000); 32 33 autoUpdater.on('update-downloaded', function (event, releaseNotes, releaseName, releaseDate, updateUrl, quitAndUpdate) { 34 35 - var index = dialog.showMessageBox(mainWindow, { 36 + var index = dialog.showMessageBox({ 37 type: 'info', 38 buttons: ['Restart', 'Later'], 39 title: "Lornsenschule Vertretungsplan", 40 - message: i18n.__('The new version has been downloaded. Please restart the application to apply the updates.'), 41 + message: ('The new version has been downloaded. Please restart the application to apply the updates.'), 42 detail: releaseName + "\n\n" + releaseNotes 43 }); 44 45 @@ -28,7 +45,7 @@ function update () { 46 return; 47 } 48 49 - autoUpdater.quitAndUpdate(); 50 + quitAndUpdate() 51 }); 52 } 53 54 diff --git a/app/package.json b/app/package.json 55 index 700d1d0..1875be0 100644 56 --- a/app/package.json 57 +++ b/app/package.json 58 @@ -1,7 +1,7 @@ 59 { 60 "name": "ls_vertretungsplan_desktop", 61 "productName": "Lornsenschule Vertretungsplan", 62 - "version": "0.1.0", 63 + "version": "0.1.1", 64 "description": "Eine Anwendung die den Vertretungsplan auf dem Desktop anzeigt", 65 "main": "./main.js", 66 "author": { 67 diff --git a/package.json b/package.json 68 index 6ce419b..7630cdc 100644 69 --- a/package.json 70 +++ b/package.json 71 @@ -1,6 +1,6 @@ 72 { 73 "name": "ls_vertretungsplan_desktop", 74 - "version": "0.1.0", 75 + "version": "0.1.1", 76 "description": "Eine Anwendung die den Vertretungsplan auf dem Desktop anzeigt", 77 "author": "Marcel Radzio", 78 "license": "", 79 @@ -34,7 +34,7 @@ 80 }, 81 "win": { 82 "iconUrl": "https://github.com/MTRNord/ls-vertretungsplan-desktop/tree/master/app/LS.ico?raw=true", 83 - "remoteReleases": "http://ls-desktop.herokuapp.com/download/0.0.4/", 84 + "remoteReleases": "http://ls-desktop.herokuapp.com/download/0.1.0/", 85 "icon": "app/LS.ico" 86 }, 87 "linux": {