mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-17 23:45:59 +00:00
builder - updater channel
This commit is contained in:
@@ -17,6 +17,7 @@ const path = require('path');
|
||||
const url = require('url');
|
||||
const mainMenuDefinition = require('./mainMenuDefinition');
|
||||
const { isProApp } = require('./proTools');
|
||||
const updaterChannel = require('./updaterChannel');
|
||||
let disableAutoUpgrade = false;
|
||||
|
||||
// require('@electron/remote/main').initialize();
|
||||
@@ -74,8 +75,8 @@ let runCommandOnLoad = null;
|
||||
|
||||
log.transports.file.level = 'debug';
|
||||
autoUpdater.logger = log;
|
||||
if (isProApp()) {
|
||||
autoUpdater.channel = 'premium';
|
||||
if (updaterChannel) {
|
||||
autoUpdater.channel = updaterChannel;
|
||||
}
|
||||
// TODO - create settings for this
|
||||
// appUpdater.channel = 'beta';
|
||||
|
||||
1
app/src/updaterChannel.js
Normal file
1
app/src/updaterChannel.js
Normal file
@@ -0,0 +1 @@
|
||||
module.exports = null;
|
||||
Reference in New Issue
Block a user