From 338207043dd1c447309b9817b02c857b7e731070 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliv=C3=A9r=20Falvai?= Date: Sat, 29 Mar 2025 18:56:15 +0100 Subject: [PATCH] cinny-desktop: disable update notification --- pkgs/by-name/ci/cinny-desktop/package.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/ci/cinny-desktop/package.nix b/pkgs/by-name/ci/cinny-desktop/package.nix index 8ead510ba928..06ace97cbaf7 100644 --- a/pkgs/by-name/ci/cinny-desktop/package.nix +++ b/pkgs/by-name/ci/cinny-desktop/package.nix @@ -14,6 +14,8 @@ glib, glib-networking, webkitgtk_4_0, + jq, + moreutils, }: rustPlatform.buildRustPackage rec { @@ -46,10 +48,9 @@ rustPlatform.buildRustPackage rec { }; in '' - substituteInPlace tauri.conf.json \ - --replace-warn '"distDir": "../cinny/dist",' '"distDir": "${cinny'}",' - substituteInPlace tauri.conf.json \ - --replace-warn '"cd cinny && npm run build"' '""' + ${lib.getExe jq} \ + 'del(.tauri.updater) | .build.distDir = "${cinny'}" | del(.build.beforeBuildCommand)' tauri.conf.json \ + | ${lib.getExe' moreutils "sponge"} tauri.conf.json ''; postInstall =