mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-03-29 21:33:54 +00:00
13 lines
367 B
TypeScript
13 lines
367 B
TypeScript
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}`)
|