ls-vertretungsplan-desktop.meta

Issues/PRs archive for MTRNord/ls-vertretungsplan-desktop
git clone git://archive.git.mtrnord.blog/MTRNord/ls-vertretungsplan-desktop.meta.git
Log | Files | Refs

8.diff (3378B)


      1 diff --git a/app/LS.ico b/app/LS.ico
      2 index ed8414e..d9c325d 100644
      3 Binary files a/app/LS.ico and b/app/LS.ico differ
      4 diff --git a/app/main.js b/app/main.js
      5 index 79c3fd2..c919fa0 100644
      6 --- a/app/main.js
      7 +++ b/app/main.js
      8 @@ -5,7 +5,7 @@ const {app, BrowserWindow, dialog} = require('electron')
      9  let win
     10  
     11  function update () {
     12 -  var feedUrl = 'https://ls-desktop.herokuapp.com/update/win32/:' + app.getVersion();
     13 +  var feedUrl = 'https://ls-desktop.herokuapp.com/update/win32/' + app.getVersion();
     14    autoUpdater.setFeedURL(feedUrl);
     15  
     16    autoUpdater.on('update-downloaded', function (event, releaseNotes, releaseName, releaseDate, updateUrl, quitAndUpdate) {
     17 @@ -70,3 +70,45 @@ app.on('activate', () => {
     18  
     19  // In this file you can include the rest of your app's specific main process
     20  // code. You can also put them in separate files and require them here.
     21 +if(require('electron-squirrel-startup')) return;
     22 +var handleStartupEvent = function() {
     23 +  if (process.platform !== 'win32') {
     24 +    return false;
     25 +  }
     26 +
     27 +  var squirrelCommand = process.argv[1];
     28 +  switch (squirrelCommand) {
     29 +    case '--squirrel-install':
     30 +    case '--squirrel-updated':
     31 +
     32 +      // Optionally do things such as:
     33 +      //
     34 +      // - Install desktop and start menu shortcuts
     35 +      // - Add your .exe to the PATH
     36 +      // - Write to the registry for things like file associations and
     37 +      //   explorer context menus
     38 +
     39 +      // Always quit when done
     40 +      app.quit();
     41 +
     42 +      return true;
     43 +    case '--squirrel-uninstall':
     44 +      // Undo anything you did in the --squirrel-install and
     45 +      // --squirrel-updated handlers
     46 +
     47 +      // Always quit when done
     48 +      app.quit();
     49 +
     50 +      return true;
     51 +    case '--squirrel-obsolete':
     52 +      // This is called on the outgoing version of your app before
     53 +      // we update to the new version - it's the opposite of
     54 +      // --squirrel-updated
     55 +      app.quit();
     56 +      return true;
     57 +  }
     58 +};
     59 +
     60 +if (handleStartupEvent()) {
     61 +  return;
     62 +}
     63 \ No newline at end of file
     64 diff --git a/app/package.json b/app/package.json
     65 index cfbdf88..8c60e60 100644
     66 --- a/app/package.json
     67 +++ b/app/package.json
     68 @@ -1,13 +1,14 @@
     69  {
     70    "name": "ls_vertretungsplan_desktop",
     71    "productName": "Lornsenschule Vertretungsplan",
     72 -  "version": "0.0.3",
     73 +  "version": "0.0.4",
     74    "description": "Eine Anwendung die den Vertretungsplan auf dem Desktop anzeigt",
     75    "main": "./main.js",
     76 -  "author": "Marcel Radzio <info@nordgedanken.de>",
     77 +  "author": "Lornsenschule Vertretungsplan",
     78    "license": "",
     79    "dependencies": {
     80      "cached-request": "^1.0.0",
     81 +    "electron-squirrel-startup": "^1.0.0",
     82      "request": "^2.69.0"
     83    },
     84    "homepage": "https://github.com/MTRNord/ls-vertretungsplan-desktop"
     85 diff --git a/package.json b/package.json
     86 index 2d5249c..39328fa 100644
     87 --- a/package.json
     88 +++ b/package.json
     89 @@ -1,6 +1,6 @@
     90  {
     91    "name": "ls_vertretungsplan_desktop",
     92 -  "version": "0.0.3",
     93 +  "version": "0.0.4",
     94    "description": "Eine Anwendung die den Vertretungsplan auf dem Desktop anzeigt",
     95    "author": "Marcel Radzio <info@nordgedanken.de>",
     96    "license": "",
     97 @@ -34,7 +34,7 @@
     98      },
     99      "win": {
    100        "iconUrl": "https://github.com/MTRNord/ls-vertretungsplan-desktop/tree/master/app/LS.ico?raw=true",
    101 -      "remoteReleases": "https://github.com/MTRNord/ls-vertretungsplan-desktop"
    102 +      "icon": "app/LS.ico"
    103      },
    104      "linux": {
    105        "target": [