summaryrefslogtreecommitdiffhomepage
path: root/packages/desktop
diff options
context:
space:
mode:
authorDax Raad <[email protected]>2026-01-29 21:19:00 -0500
committerDax Raad <[email protected]>2026-01-29 21:19:00 -0500
commit553316af2a72ea57539dee933b2871db2bf03ef3 (patch)
tree01a0e1ae420f4a13eecb808a875278f50fd9ff3d /packages/desktop
parentf27ee4674ae59e342de3b7f6494084857497d8b3 (diff)
downloadopencode-553316af2a72ea57539dee933b2871db2bf03ef3.tar.gz
opencode-553316af2a72ea57539dee933b2871db2bf03ef3.zip
ci
Diffstat (limited to 'packages/desktop')
-rwxr-xr-xpackages/desktop/scripts/prepare.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/packages/desktop/scripts/prepare.ts b/packages/desktop/scripts/prepare.ts
index 24ff9e7e0..d909e7689 100755
--- a/packages/desktop/scripts/prepare.ts
+++ b/packages/desktop/scripts/prepare.ts
@@ -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"