mirror of
https://git.mirrors.martin98.com/https://github.com/sub-store-org/Sub-Store.git
synced 2026-04-12 01:43:15 +08:00
feat: 文件支持脚本操作
This commit is contained in:
@@ -331,7 +331,10 @@ async function produceArtifact({
|
||||
} else if (type === 'file') {
|
||||
const allFiles = $.read(FILES_KEY);
|
||||
const file = findByName(allFiles, name);
|
||||
return file?.content ?? '';
|
||||
if (!file) throw new Error(`找不到文件 ${name}`);
|
||||
let content = file.content ?? '';
|
||||
content = await ProxyUtils.process(content, file.process || []);
|
||||
return content ?? '';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user