mirror of
https://github.com/SukkaW/Surge.git
synced 2025-12-12 09:10:35 +08:00
Extract Clash previous build result
This commit is contained in:
parent
daad7dcd5e
commit
ce61f67e63
@ -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';
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user