mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-14 21:26:08 +01:00
14 lines
424 B
TypeScript
14 lines
424 B
TypeScript
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}`;
|
|
}
|