Download packages/desktop/scripts/copy-bundles.ts from SaylorTwift/opencode: direct link, hf CLI and curl.
- Browser
- Download file 339 Bytes
-
https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/desktop/scripts/copy-bundles.ts
- Command line
-
hf download hf://SaylorTwift/opencode/packages/desktop/scripts/copy-bundles.ts
-
curl -L -o copy-bundles.ts https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/desktop/scripts/copy-bundles.ts
339 Bytes
| import { $ } from "bun" | |
| import * as path from "node:path" | |
| import { RUST_TARGET } from "./utils" | |
| if (!RUST_TARGET) throw new Error("RUST_TARGET not defined") | |
| const BUNDLE_DIR = "dist" | |
| const BUNDLES_OUT_DIR = path.join(process.cwd(), "dist/bundles") | |
| await $`mkdir -p ${BUNDLES_OUT_DIR}` | |
| await $`cp -r ${BUNDLE_DIR}/* ${BUNDLES_OUT_DIR}` | |