tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
flexoptix-app: 5.16.0 -> 5.20.0
qubitnano
2 years ago
6dbd7ef6
a3320403
+19
-3
2 changed files
expand all
collapse all
unified
split
pkgs
tools
misc
flexoptix-app
default.nix
disable-autoupdate.patch
+3
-3
pkgs/tools/misc/flexoptix-app/default.nix
···
1
1
{ lib, appimageTools, fetchurl, asar }: let
2
2
pname = "flexoptix-app";
3
3
-
version = "5.16.0-latest";
3
3
+
version = "5.20.0-latest";
4
4
5
5
src = fetchurl {
6
6
name = "${pname}-${version}.AppImage";
7
7
url = "https://flexbox.reconfigure.me/download/electron/linux/x64/FLEXOPTIX%20App.${version}.AppImage";
8
8
-
hash = "sha256-A10r8IUB3zWKWmjen90vLXPF7V/Cgo+DhFn/Hsc1Nhg=";
8
8
+
hash = "sha256-/4vZaVLpSiufjNwwofPi+YBtTJ4aq7eYgFnYFv89LFY=";
9
9
};
10
10
11
11
udevRules = fetchurl {
···
19
19
20
20
# Get rid of the autoupdater
21
21
${asar}/bin/asar extract $out/resources/app.asar app
22
22
-
sed -i 's/async isUpdateAvailable.*/async isUpdateAvailable(updateInfo) { return false;/g' app/node_modules/electron-updater/out/AppUpdater.js
22
22
+
patch -p0 < ${./disable-autoupdate.patch}
23
23
${asar}/bin/asar pack app $out/resources/app.asar
24
24
'';
25
25
});
+16
pkgs/tools/misc/flexoptix-app/disable-autoupdate.patch
···
1
1
+
--- app/electron/jsComponents/mainWindowEvents.js 2024-02-18 12:53:41.115773007 -0500
2
2
+
+++ app/electron/jsComponents/mainWindowEvents.js2 2024-02-18 23:22:20.003280203 -0500
3
3
+
@@ -128,7 +128,12 @@
4
4
+
5
5
+
if (app.isPackaged) {
6
6
+
global.mainWindow.webContents.once("did-finish-load", function () {
7
7
+
- autoUpdater.checkForUpdates();
8
8
+
+ global.mainWindow.loadURL(
9
9
+
+ url.format({
10
10
+
+ ...global.APPLICATION_URL_OBJECT,
11
11
+
+ slashes: true,
12
12
+
+ }),
13
13
+
+ );
14
14
+
});
15
15
+
} else {
16
16
+
global.mainWindow.webContents.openDevTools();