From f15fb28d80c481a40d768c12cb5f28a4daa6a5a6 Mon Sep 17 00:00:00 2001 From: Elysia Date: Wed, 28 Jan 2026 22:40:54 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=20=E7=BB=9F=E4=B8=80=E5=AE=89=E8=A3=85?= =?UTF-8?q?=E5=92=8C=E5=8D=B8=E8=BD=BD=E8=84=9A=E6=9C=AC=E4=BB=A5=E6=94=AF?= =?UTF-8?q?=E6=8C=81PolicyKit=E6=9D=83=E9=99=90=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit rpm应该能通用这两个脚本 --- electron-builder.yml | 6 ++++-- scripts/{debian-postinst.sh => postinst.sh} | 0 scripts/{debian-postrm.sh => postrm.sh} | 0 3 files changed, 4 insertions(+), 2 deletions(-) rename scripts/{debian-postinst.sh => postinst.sh} (100%) rename scripts/{debian-postrm.sh => postrm.sh} (100%) diff --git a/electron-builder.yml b/electron-builder.yml index 858440a5..e1c3f27f 100644 --- a/electron-builder.yml +++ b/electron-builder.yml @@ -28,8 +28,8 @@ linux: - "deb" - "rpm" deb: - afterInstall: "scripts/debian-postinst.sh" - afterRemove: "scripts/debian-postrm.sh" + afterInstall: "scripts/postinst.sh" + afterRemove: "scripts/postrm.sh" depends: - "libgtk-3-0" - "libnotify4" @@ -42,6 +42,8 @@ deb: - "libsecret-1-0" - "apm" rpm: + afterInstall: "scripts/postinst.sh" + afterRemove: "scripts/postrm.sh" depends: - "gtk3" - "libnotify" diff --git a/scripts/debian-postinst.sh b/scripts/postinst.sh similarity index 100% rename from scripts/debian-postinst.sh rename to scripts/postinst.sh diff --git a/scripts/debian-postrm.sh b/scripts/postrm.sh similarity index 100% rename from scripts/debian-postrm.sh rename to scripts/postrm.sh