mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-03 16:53:56 +08:00
🛸 Sync 2026-10-27 02:27:08
This commit is contained in:
1 parent
b3798acf79
commit
8b63d5d4a9
78 files changed
+2288
-518
No files matched your search
@@ -273,6 +273,8 @@ if (clashoo_running()) return 'mihomo';
|
||||
return '';
|
||||
}
|
||||
|
||||
let selected_mihomo_stable;
|
||||
|
||||
function find_binary_for_family(family) {
|
||||
if (family === 'mihomo') {
|
||||
let pid = procd_instance_pid('clashoo');
|
||||
@@ -889,7 +891,7 @@ if (m) return m[1];
|
||||
return full;
|
||||
}
|
||||
|
||||
function selected_mihomo_stable() {
|
||||
selected_mihomo_stable = function() {
|
||||
let bundled = '/usr/libexec/clashoo/mihomo-stable';
|
||||
let manual = '/usr/share/clashoo/bin/mihomo-stable';
|
||||
if (access(manual, 'x') && read_first_line('/usr/share/clashoo/clash_meta_version') == 'custom-url') return manual;
|
||||
@@ -904,7 +906,7 @@ for (let i = 1; i <= 3; i++) {
|
||||
if (int(mv[i]) < int(bv[i])) return bundled;
|
||||
}
|
||||
return manual;
|
||||
}
|
||||
};
|
||||
|
||||
function component_installed_label(id) {
|
||||
if (id == 'clashoo') return pkg_version('clashoo') || '未安装';
|
||||
|
||||
Reference in new issue
Block a user