summaryrefslogtreecommitdiffhomepage
path: root/packages
diff options
context:
space:
mode:
authorBrendan Allan <[email protected]>2026-03-02 11:21:17 +0800
committerBrendan Allan <[email protected]>2026-03-02 11:21:17 +0800
commita692e6fdd48634a046501b8b36c26f7ee5c9aabe (patch)
tree7f9f54249e55952bd2de31a94e2c2c2afbc76b86 /packages
parentd1938a472d58dedf27ca4afc4973a709ce5424f3 (diff)
downloadopencode-a692e6fdd48634a046501b8b36c26f7ee5c9aabe.tar.gz
opencode-a692e6fdd48634a046501b8b36c26f7ee5c9aabe.zip
desktop: use correct download link in finalize-latest-json
Diffstat (limited to 'packages')
-rw-r--r--packages/desktop/scripts/finalize-latest-json.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/packages/desktop/scripts/finalize-latest-json.ts b/packages/desktop/scripts/finalize-latest-json.ts
index a6fe02a37..822903f2a 100644
--- a/packages/desktop/scripts/finalize-latest-json.ts
+++ b/packages/desktop/scripts/finalize-latest-json.ts
@@ -20,6 +20,9 @@ if (!repo) throw new Error("GH_REPO is required")
const releaseId = process.env.OPENCODE_RELEASE
if (!releaseId) throw new Error("OPENCODE_RELEASE is required")
+const version = process.env.OPENCODE_VERSION
+if (!releaseId) throw new Error("OPENCODE_VERSION is required")
+
const token = process.env.GH_TOKEN ?? process.env.GITHUB_TOKEN
if (!token) throw new Error("GH_TOKEN or GITHUB_TOKEN is required")
@@ -39,7 +42,6 @@ if (!releaseRes.ok) {
type Asset = {
name: string
url: string
- browser_download_url: string
}
type Release = {
@@ -89,7 +91,7 @@ const entries: Record<string, { url: string; signature: string }> = {}
const add = (key: string, asset: Asset, signature: string) => {
if (entries[key]) return
entries[key] = {
- url: asset.browser_download_url,
+ url: `https://github.com/${repo}/releases/download/${version}/${asset.name}`,
signature,
}
}