mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-04-09 18:29:39 +00:00
feat: tfcode
This commit is contained in:
@@ -110,6 +110,10 @@ async function createMainPackage() {
|
||||
await Bun.file(`./dist/tfcode/postinstall.mjs`).write(await Bun.file("./script/postinstall-tfcode.mjs").text())
|
||||
await Bun.file(`./dist/tfcode/LICENSE`).write(await Bun.file("../../LICENSE").text())
|
||||
|
||||
// Copy embedded python module (tf_sync)
|
||||
await $`cp -r ./python ./dist/tfcode/`
|
||||
console.log("Copied embedded python/tf_sync module")
|
||||
|
||||
// Copy the current platform's binary to the main package
|
||||
// This makes installation faster (no need to download or copy from optionalDependencies)
|
||||
const currentPlatform = process.platform === "darwin" ? "darwin" : process.platform === "linux" ? "linux" : "windows"
|
||||
|
||||
Reference in New Issue
Block a user