add Android build; remove bulk video compression as it's impractical
This commit is contained in:
1 parent
f2f6c28989
commit
40edfe44e9
43 files changed
+951
-157
No files matched your search
@@ -0,0 +1,16 @@
|
||||
import fs from "node:fs/promises";
|
||||
import { join as joinPath } from "node:path";
|
||||
|
||||
function isVideo(file) {
|
||||
return /\.(mp4|mkv|mov|webm|avi|m4v)$/i.test(file);
|
||||
}
|
||||
|
||||
async function removeAllVideos(dir) {
|
||||
for (const entry of await fs.readdir(dir)) {
|
||||
if (isVideo(entry)) {
|
||||
await fs.unlink(joinPath(dir, entry));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
await removeAllVideos("docs/.vitepress/dist");
|
||||
Reference in new issue
Block a user