perf: Use cache for all remote resources

This commit is contained in:
Peng-YM
2022-07-11 20:46:16 +08:00
parent 848491c0f8
commit 6881148021
10 changed files with 482 additions and 39 deletions

View File

@@ -84,7 +84,7 @@ async function process(proxies, operators = [], targetPlatform) {
// if this is a remote script, download it
try {
script = await download(url.split('#')[0]);
$.info(`Script loaded: >>>\n ${script}`);
// $.info(`Script loaded: >>>\n ${script}`);
} catch (err) {
$.error(
`Error when downloading remote script: ${item.args.content}.\n Reason: ${err}`,