Download packages/desktop/scripts/copy-icons.ts from SaylorTwift/opencode: direct link, hf CLI and curl.
- Browser
- Download file 367 Bytes
-
https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/desktop/scripts/copy-icons.ts
- Command line
-
hf download hf://SaylorTwift/opencode/packages/desktop/scripts/copy-icons.ts
-
curl -L -o copy-icons.ts https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/desktop/scripts/copy-icons.ts
367 Bytes
| import { $ } from "bun" | |
| import { resolveChannel } from "./utils" | |
| const arg = process.argv[2] | |
| const channel = arg === "dev" || arg === "beta" || arg === "prod" ? arg : resolveChannel() | |
| const src = `./icons/${channel}` | |
| const dest = "resources/icons" | |
| await $`rm -rf ${dest}` | |
| await $`cp -R ${src} ${dest}` | |
| console.log(`Copied ${channel} icons from ${src} to ${dest}`) | |