✨ feat(core): 优化 Homebrew 缓存清理策略
* 禁用安装步骤中的自动清理,统一在升级流程结束后执行 * 清理 Homebrew prefix 失效链接及日期早于今天的缓存 * 保留当天生成的下载缓存,并支持失败后继续清理 * 扩展全量清理参数支持并更新相关文档说明
This commit is contained in:
@@ -11,7 +11,7 @@ const COMMON_SCRIPT_URL = `https://git.orionc.me/orion/script/raw/branch/main/su
|
||||
const hasCurrentRenameUtils = utils => Boolean(
|
||||
utils && utils.version === COMMON_SCRIPT_VERSION
|
||||
);
|
||||
|
||||
const
|
||||
async function loadRenameUtils() {
|
||||
if (typeof globalThis !== 'undefined' && hasCurrentRenameUtils(globalThis.SubStoreRenameUtils)) {
|
||||
return globalThis.SubStoreRenameUtils;
|
||||
@@ -164,4 +164,4 @@ async function operator(proxies) {
|
||||
].filter(Boolean).join(' ').trim();
|
||||
return item.proxy;
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -119,4 +119,4 @@ async function operator(proxies) {
|
||||
|
||||
return proxy;
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user