Skip to content

Commit

Permalink
updateElectronApp added
Browse files Browse the repository at this point in the history
  • Loading branch information
chsami committed Nov 16, 2024
1 parent 8b4bd53 commit 05708ea
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 286 deletions.
6 changes: 5 additions & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ const {readPropertiesFile, writePropertiesFile} = require("./libs/properties");
const {readAccountsJson, removeAccountsJson, checkFileModification} = require("./libs/accounts-loader");
const {overwrite} = require("./libs/overwrite-credential-properties");
const {logMessage, logError} = require("./libs/logger");
const { updateElectronApp, UpdateSourceType } = require('update-electron-app')


const url = 'https://microbot-api.azurewebsites.net'
// const url = 'http://localhost:5029'
Expand All @@ -26,6 +28,8 @@ if (!fs.existsSync(microbotDir)) {
fs.mkdirSync(microbotDir);
}

updateElectronApp()


// this should be placed at top of main.js to handle setup events quickly
if (handleSquirrelEvent()) {
Expand Down Expand Up @@ -157,7 +161,7 @@ async function createWindow() {
height: 800,
show: false, // Don't show the main window immediately
title: 'Microbot Launcher',
autoHideMenuBar: false,
autoHideMenuBar: true,
icon: path.join(__dirname, 'images/microbot_transparent.ico'),
webPreferences: {
preload: path.join(__dirname, 'preload.js'),
Expand Down
Loading

0 comments on commit 05708ea

Please sign in to comment.