flexoptix-app: 5.16.0 -> 5.20.0
This commit is contained in:
parent
a332040396
commit
6dbd7ef66d
@ -1,11 +1,11 @@
|
|||||||
{ lib, appimageTools, fetchurl, asar }: let
|
{ lib, appimageTools, fetchurl, asar }: let
|
||||||
pname = "flexoptix-app";
|
pname = "flexoptix-app";
|
||||||
version = "5.16.0-latest";
|
version = "5.20.0-latest";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
name = "${pname}-${version}.AppImage";
|
name = "${pname}-${version}.AppImage";
|
||||||
url = "https://flexbox.reconfigure.me/download/electron/linux/x64/FLEXOPTIX%20App.${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 {
|
udevRules = fetchurl {
|
||||||
@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
# Get rid of the autoupdater
|
# Get rid of the autoupdater
|
||||||
${asar}/bin/asar extract $out/resources/app.asar app
|
${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
|
${asar}/bin/asar pack app $out/resources/app.asar
|
||||||
'';
|
'';
|
||||||
});
|
});
|
||||||
|
16
pkgs/tools/misc/flexoptix-app/disable-autoupdate.patch
Normal file
16
pkgs/tools/misc/flexoptix-app/disable-autoupdate.patch
Normal file
@ -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();
|
Loading…
Reference in New Issue
Block a user