mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-11-10 04:12:08 +08:00
Place both uninstaller files in /usr/bin directly from the deb and rpm `files` maps instead of having prebuild copy the wrapper over the uninstaller sidecar and move the real binary to /usr/lib. /usr/bin/clash-verge-service-uninstall stays the entry point that released rpm %preun scripts and the app call, and is now packages/linux/service-uninstall.sh itself. The real uninstaller is packaged as /usr/bin/clash-verge-service-uninstall.real. `files` sources cannot vary by target, while release builds run one prebuild per Linux target, so prebuild stores the uninstaller without the target-triple suffix. It is no longer an externalBin. Refs #8515 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
43 lines
1.7 KiB
JSON
43 lines
1.7 KiB
JSON
{
|
|
"$schema": "../node_modules/@tauri-apps/cli/config.schema.json",
|
|
"identifier": "io.github.clash-verge-rev.clash-verge-rev",
|
|
"bundle": {
|
|
"targets": ["deb", "rpm"],
|
|
"linux": {
|
|
"deb": {
|
|
"depends": ["openssl", "libayatana-appindicator3-1"],
|
|
"desktopTemplate": "./packages/linux/clash-verge.desktop",
|
|
"provides": ["clash-verge"],
|
|
"conflicts": ["clash-verge"],
|
|
"replaces": ["clash-verge"],
|
|
"postInstallScript": "./packages/linux/post-install.sh",
|
|
"preRemoveScript": "./packages/linux/pre-remove.sh",
|
|
"files": {
|
|
"/usr/bin/clash-verge-service-uninstall": "./packages/linux/service-uninstall.sh",
|
|
"/usr/bin/clash-verge-service-uninstall.real": "./sidecar/clash-verge-service-uninstall"
|
|
}
|
|
},
|
|
"rpm": {
|
|
"depends": ["openssl", "libayatana-appindicator-gtk3"],
|
|
"recommends": ["policycoreutils", "policycoreutils-python-utils"],
|
|
"desktopTemplate": "./packages/linux/clash-verge.desktop",
|
|
"provides": ["clash-verge"],
|
|
"conflicts": ["clash-verge"],
|
|
"obsoletes": ["clash-verge"],
|
|
"postInstallScript": "./packages/linux/post-install-rpm.sh",
|
|
"preRemoveScript": "./packages/linux/pre-remove.sh",
|
|
"files": {
|
|
"/usr/bin/clash-verge-service-uninstall": "./packages/linux/service-uninstall.sh",
|
|
"/usr/bin/clash-verge-service-uninstall.real": "./sidecar/clash-verge-service-uninstall"
|
|
}
|
|
}
|
|
},
|
|
"externalBin": [
|
|
"./sidecar/clash-verge-service",
|
|
"./sidecar/clash-verge-service-install",
|
|
"./sidecar/verge-mihomo",
|
|
"./sidecar/verge-mihomo-alpha"
|
|
]
|
|
}
|
|
}
|