The open source coding agent.
TypeScript
ci
Dax Raad553316af2a72
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.ymlindex 9060eeb3294..3924ad49148 100644--- a/.github/workflows/publish.yml+++ b/.github/workflows/publish.yml@@ -145,7 +145,7 @@ jobs:cd packages/desktopbun ./scripts/prepare.tsenv:- OPENCODE_VERSION: ${{ needs.publish.outputs.version }}+ OPENCODE_VERSION: ${{ needs.version.outputs.version }}GITHUB_TOKEN: ${{ secrets.SST_GITHUB_TOKEN }}RUST_TARGET: ${{ matrix.settings.target }}GH_TOKEN: ${{ github.token }}diff --git a/packages/desktop/scripts/prepare.ts b/packages/desktop/scripts/prepare.tsindex 24ff9e7e097..d909e76896b 100755--- a/packages/desktop/scripts/prepare.ts+++ b/packages/desktop/scripts/prepare.ts@@ -1,8 +1,14 @@#!/usr/bin/env bunimport { $ } 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"