mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-14 21:26:08 +01:00
Merge branch 'main' into data-driven
This commit is contained in:
7 files changed
+31
-30
No files matched your search
@@ -3,7 +3,6 @@ import { mkdir, rm } from "node:fs/promises";
|
||||
import { downloadSteamClient } from "./steam";
|
||||
import { downloadWGCClient } from "./wgc";
|
||||
import { downloadWGPKGClient } from "./wgpkg";
|
||||
import { downloadZipClient } from "./zip";
|
||||
|
||||
export const DEPOT_DOWNLOADER_RETRY_TIME = 30_000;
|
||||
|
||||
@@ -20,9 +19,9 @@ switch (provider) {
|
||||
await downloadSteamClient();
|
||||
break;
|
||||
|
||||
// from zip, usually has a root directory for opentest
|
||||
// from zip, read remotely by ZipVFS at build time; nothing to download
|
||||
case "zip":
|
||||
await downloadZipClient();
|
||||
console.log("Zip client provider; skipping download in favor of ZipVFS");
|
||||
break;
|
||||
|
||||
// effectively the same as wgc, but direct for preview
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
import { assertSecret } from "@blitzkit/core";
|
||||
import { LocalVFS } from "@blitzkit/core/src/blitzkit/vfs/local";
|
||||
import { createClientVFS } from "@blitzkit/core/src/blitzkit/vfs/client";
|
||||
|
||||
export const vfs = await new LocalVFS(
|
||||
assertSecret(import.meta.env.CLIENT_DIR),
|
||||
).init();
|
||||
export const vfs = await createClientVFS();
|
||||
Reference in new issue
Block a user