mirror of
https://github.com/zhom/donutbrowser.git
synced 2026-10-19 14:07:19 +02:00
fix: rpm duplicate sidecar
This commit is contained in:
1 parent
7995419fea
commit
f70a6c9671
2 files changed
+4
-8
No files matched your search
+3
-7
@@ -100,19 +100,15 @@ fn external_binaries_exist() -> bool {
|
||||
|
||||
let binaries_dir = PathBuf::from(&manifest_dir).join("binaries");
|
||||
|
||||
// Check for all required external binaries (must match tauri.conf.json externalBin)
|
||||
let donut_proxy_name = if target.contains("windows") {
|
||||
format!("donut-proxy-{}.exe", target)
|
||||
} else {
|
||||
format!("donut-proxy-{}", target)
|
||||
};
|
||||
// Must match tauri.conf.json externalBin. donut-proxy is a cargo bin of this
|
||||
// crate, which the bundler packages on its own.
|
||||
let xray_name = if target.contains("windows") {
|
||||
format!("xray-{}.exe", target)
|
||||
} else {
|
||||
format!("xray-{}", target)
|
||||
};
|
||||
|
||||
binaries_dir.join(&donut_proxy_name).exists() && binaries_dir.join(&xray_name).exists()
|
||||
binaries_dir.join(&xray_name).exists()
|
||||
}
|
||||
|
||||
fn ensure_dist_folder_exists() {
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
"active": true,
|
||||
"targets": ["app", "dmg", "nsis", "deb", "rpm", "appimage"],
|
||||
"category": "Productivity",
|
||||
"externalBin": ["binaries/donut-proxy", "binaries/xray"],
|
||||
"externalBin": ["binaries/xray"],
|
||||
"resources": {
|
||||
"binaries/xray-LICENSE.txt": "licenses/Xray-core-LICENSE.txt"
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user