cinny-desktop: 4.12.2 -> 4.12.5

Diff: https://github.com/cinnyapp/cinny-desktop/compare/v4.12.2...v4.12.5
This commit is contained in:
Lu Wang
2026-07-07 07:16:24 +08:00
parent b73bb1ff3c
commit 74508fe291
+11 -13
View File
@@ -20,35 +20,30 @@
rustPlatform.buildRustPackage (finalAttrs: {
pname = "cinny-desktop";
# We have to be using the same version as cinny-web or this isn't going to work.
version = "4.12.2";
version = "4.12.5";
src = fetchFromGitHub {
owner = "cinnyapp";
repo = "cinny-desktop";
tag = "v${finalAttrs.version}";
hash = "sha256-gaTgNTn0/HHzULHRL03+t73MEUOGdqcEyqaIt8CWA0k=";
hash = "sha256-/A/O42jwwK2iDV1IdRjOO8fE/AZ0h7UWAZZLozOqUWs=";
};
sourceRoot = "${finalAttrs.src.name}/src-tauri";
cargoHash = "sha256-x7rpnhTz454Ftolu4x50NSGKdg8NfenUwdhPY4a+lbA=";
cargoHash = "sha256-EF8gpfeZasazq0NKrjItt4bkgautQjYjEegf1OlWLOw=";
postPatch =
let
cinny' =
assert lib.assertMsg (
cinny.version == finalAttrs.version
) "cinny.version (${cinny.version}) != cinny-desktop.version (${finalAttrs.version})";
cinny.override {
conf = {
hashRouter.enabled = true;
};
cinny' = cinny.override {
conf = {
hashRouter.enabled = true;
};
};
in
''
${lib.getExe jq} \
'del(.plugins.tauri.updater) | .build.frontendDist = "${cinny'}" | del(.build.beforeBuildCommand) | .bundle.createUpdaterArtifacts = false' tauri.conf.json \
'.build.frontendDist = "${cinny'}" | del(.build.beforeBuildCommand) | .bundle.createUpdaterArtifacts = false' tauri.conf.json \
| ${lib.getExe' moreutils "sponge"} tauri.conf.json
'';
@@ -82,6 +77,9 @@ rustPlatform.buildRustPackage (finalAttrs: {
webkitgtk_4_1
];
buildNoDefaultFeatures = true;
buildFeatures = [ "custom-protocol" ];
passthru = {
updateScript = _experimental-update-script-combinators.sequence [
(nix-update-script { attrPath = "cinny-unwrapped"; })