From 077136814db04c5b44977333b8bccf761ad785d1 Mon Sep 17 00:00:00 2001 From: Jan Prochazka Date: Thu, 7 Jan 2021 08:33:16 +0100 Subject: [PATCH] publish (required for autoupgrade) --- app/package.json | 9 ++++++--- app/src/electron.js | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/app/package.json b/app/package.json index 9d30ade0..4c80c267 100644 --- a/app/package.json +++ b/app/package.json @@ -11,7 +11,8 @@ "appId": "org.dbgate", "mac": { "category": "database", - "icon": "icon512.png" + "icon": "icon512.png", + "publish": ["github"] }, "linux": { "target": [ @@ -20,13 +21,15 @@ ], "icon": "icon.png", "category": "Development", - "synopsis": "Database administration tool for MS SQL, MySQL and PostgreSQL" + "synopsis": "Database administration tool for MS SQL, MySQL and PostgreSQL", + "publish": ["github"] }, "win": { "target": [ "nsis" ], - "icon": "icon.ico" + "icon": "icon.ico", + "publish": ["github"] }, "files": [ "packages", diff --git a/app/src/electron.js b/app/src/electron.js index 4b33314c..4972063e 100644 --- a/app/src/electron.js +++ b/app/src/electron.js @@ -2,7 +2,7 @@ const electron = require('electron'); const os = require('os'); const { Menu } = require('electron'); const { fork } = require('child_process'); -var { autoUpdater } = require('electron-updater'); +const { autoUpdater } = require('electron-updater'); const Store = require('electron-store'); // Module to control application life. const app = electron.app;