|
|
@@ -1,8 +1,14 @@
|
|
|
#!/usr/bin/env bun
|
|
|
import { $ } from "bun"
|
|
|
|
|
|
+import { Script } from "@opencode-ai/script"
|
|
|
import { copyBinaryToSidecarFolder, getCurrentSidecar, windowsify } from "./utils"
|
|
|
|
|
|
+const pkg = await Bun.file("../package.json").json()
|
|
|
+pkg.version = Script.version
|
|
|
+await Bun.write("../package.json", JSON.stringify(pkg, null, 2) + "\n")
|
|
|
+console.log(`Updated package.json version to ${Script.version}`)
|
|
|
+
|
|
|
const sidecarConfig = getCurrentSidecar()
|
|
|
|
|
|
const dir = "src-tauri/target/opencode-binaries"
|