Download packages/desktop/scripts/prebuild.ts from SaylorTwift/opencode: direct link, hf CLI and curl.
- Browser
- Download file 349 Bytes
-
https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/desktop/scripts/prebuild.ts
- Command line
-
hf download hf://SaylorTwift/opencode/packages/desktop/scripts/prebuild.ts
-
curl -L -o prebuild.ts https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/desktop/scripts/prebuild.ts
349 Bytes
| import { $ } from "bun" | |
| import { downloadCliToResources, resolveChannel } from "./utils" | |
| const channel = resolveChannel() | |
| await $`bun ./scripts/copy-icons.ts ${channel}` | |
| await $`bun ./scripts/copy-metainfo.ts ${channel}` | |
| await $`cd ../opencode && bun script/build-node.ts` | |
| if (channel === "dev") await downloadCliToResources() | |