diff --git a/pkgs/tools/misc/flexoptix-app/default.nix b/pkgs/tools/misc/flexoptix-app/default.nix index 1e9b16a84855..6712925d0120 100644 --- a/pkgs/tools/misc/flexoptix-app/default.nix +++ b/pkgs/tools/misc/flexoptix-app/default.nix @@ -1,11 +1,11 @@ { lib, appimageTools, fetchurl, asar }: let pname = "flexoptix-app"; - version = "5.16.0-latest"; + version = "5.20.0-latest"; src = fetchurl { name = "${pname}-${version}.AppImage"; url = "https://flexbox.reconfigure.me/download/electron/linux/x64/FLEXOPTIX%20App.${version}.AppImage"; - hash = "sha256-A10r8IUB3zWKWmjen90vLXPF7V/Cgo+DhFn/Hsc1Nhg="; + hash = "sha256-/4vZaVLpSiufjNwwofPi+YBtTJ4aq7eYgFnYFv89LFY="; }; udevRules = fetchurl { @@ -19,7 +19,7 @@ # Get rid of the autoupdater ${asar}/bin/asar extract $out/resources/app.asar app - sed -i 's/async isUpdateAvailable.*/async isUpdateAvailable(updateInfo) { return false;/g' app/node_modules/electron-updater/out/AppUpdater.js + patch -p0 < ${./disable-autoupdate.patch} ${asar}/bin/asar pack app $out/resources/app.asar ''; }); diff --git a/pkgs/tools/misc/flexoptix-app/disable-autoupdate.patch b/pkgs/tools/misc/flexoptix-app/disable-autoupdate.patch new file mode 100644 index 000000000000..d71133951e72 --- /dev/null +++ b/pkgs/tools/misc/flexoptix-app/disable-autoupdate.patch @@ -0,0 +1,16 @@ +--- app/electron/jsComponents/mainWindowEvents.js 2024-02-18 12:53:41.115773007 -0500 ++++ app/electron/jsComponents/mainWindowEvents.js2 2024-02-18 23:22:20.003280203 -0500 +@@ -128,7 +128,12 @@ + + if (app.isPackaged) { + global.mainWindow.webContents.once("did-finish-load", function () { +- autoUpdater.checkForUpdates(); ++ global.mainWindow.loadURL( ++ url.format({ ++ ...global.APPLICATION_URL_OBJECT, ++ slashes: true, ++ }), ++ ); + }); + } else { + global.mainWindow.webContents.openDevTools();