code split download client

This commit is contained in:
tresabhi committed 2026-11-08 17:38:55 -06:00
1 parent f2d3c59e97
commit cd2ef98e22
4 files changed
+133 -104

No files matched your search

@@ -0,0 +1,13 @@
import { assertSecret } from "@blitzkit/core";
import { $ } from "bun";
import { mkdir } from "node:fs/promises";
import { dir } from ".";
export async function downloadZipClient() {
const url = assertSecret(import.meta.env.CLIENT_SOURCE);
console.log("Downloading and extracting zipped client...");
await mkdir(dir, { recursive: true });
await $`curl -L "${url}" | bsdtar -xf- --strip-components=1 -C ${dir}`;
}