mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-29 01:51:52 +08:00
Extract Clash previous build result
This commit is contained in:
@@ -16,7 +16,7 @@ const fileExists = (path) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
(async () => {
|
(async () => {
|
||||||
const filesList = [];
|
const filesList = ['Clash', 'List'];
|
||||||
|
|
||||||
let allFileExists = true;
|
let allFileExists = true;
|
||||||
|
|
||||||
@@ -60,7 +60,7 @@ const fileExists = (path) => {
|
|||||||
cwd: extractedPath,
|
cwd: extractedPath,
|
||||||
filter(p) {
|
filter(p) {
|
||||||
const dir = p.split('/')[1];
|
const dir = p.split('/')[1];
|
||||||
return dir === 'List' || dir === 'Modules';
|
return dir === 'List' || dir === 'Modules' || dir === 'Clash';
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user