mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 03:59:50 +02:00
feat: depot
This commit is contained in:
1 parent
58002958bf
commit
067178e94d
4 files changed
+10
-6
No files matched your search
@@ -1,6 +1,6 @@
|
||||
import decompress from 'decompress';
|
||||
import { existsSync } from 'fs';
|
||||
import { mkdir, writeFile } from 'fs/promises';
|
||||
import { mkdir, readdir, writeFile } from 'fs/promises';
|
||||
|
||||
if (!existsSync('temp')) {
|
||||
console.log('Creating temp directory...');
|
||||
@@ -25,3 +25,5 @@ await fetch(
|
||||
|
||||
console.log('Unzipping...');
|
||||
decompress('temp/depotDownloader.zip', 'temp/depotDownloader');
|
||||
|
||||
console.log(await readdir('temp/depotDownloader'));
|
||||
Reference in new issue
Block a user