Skip to content

Commit

Permalink
Show update page to non-windows users
Browse files Browse the repository at this point in the history
  • Loading branch information
atticuscornett committed Oct 17, 2023
1 parent f2cd9a5 commit f1dee69
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const fs = require("fs");
const AdmZip = require("adm-zip");
const PluginManager = require("./plugins")
const {autoUpdater} = require("electron-updater");
const os = require("os");

let mainWindow;

Expand Down Expand Up @@ -539,6 +540,10 @@ function isAppBundled(){
}

function installUpdates(){
if (os.platform() !== "win32"){
openLinkInBrowser(null, "https://github.com/atticuscornett/mimacro/releases/latest");
return;
}
autoUpdater.checkForUpdates();
autoUpdater.on("update-downloaded", () => {
autoUpdater.quitAndInstall();
Expand Down

0 comments on commit f1dee69

Please sign in to comment.