mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-04-20 07:34:38 +00:00
desktop: add electron version (#15663)
This commit is contained in:
12
packages/desktop-electron/scripts/copy-icons.ts
Normal file
12
packages/desktop-electron/scripts/copy-icons.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
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}`)
|
||||
Reference in New Issue
Block a user