Aiden Cline hai 3 meses
pai
achega
3bb3f4f2c9
Modificáronse 2 ficheiros con 6 adicións e 6 borrados
  1. 5 5
      packages/extensions/zed/extension.toml
  2. 1 1
      script/publish.ts

+ 5 - 5
packages/extensions/zed/extension.toml

@@ -11,26 +11,26 @@ name = "OpenCode"
 icon = "./icons/opencode.svg"
 
 [agent_servers.opencode.targets.darwin-aarch64]
-archive = "https://github.com/sst/opencode/releases/v1.0.44/download/opencode-darwin-arm64.zip"
+archive = "https://github.com/sst/opencode/releases/download/v1.0.44/opencode-darwin-arm64.zip"
 cmd = "./opencode"
 args = ["acp"]
 
 [agent_servers.opencode.targets.darwin-x86_64]
-archive = "https://github.com/sst/opencode/releases/v1.0.44/download/opencode-darwin-x64.zip"
+archive = "https://github.com/sst/opencode/releases/download/v1.0.44/opencode-darwin-x64.zip"
 cmd = "./opencode"
 args = ["acp"]
 
 [agent_servers.opencode.targets.linux-aarch64]
-archive = "https://github.com/sst/opencode/releases/v1.0.44/download/opencode-linux-arm64.zip"
+archive = "https://github.com/sst/opencode/releases/download/v1.0.44/opencode-linux-arm64.zip"
 cmd = "./opencode"
 args = ["acp"]
 
 [agent_servers.opencode.targets.linux-x86_64]
-archive = "https://github.com/sst/opencode/releases/v1.0.44/download/opencode-linux-x64.zip"
+archive = "https://github.com/sst/opencode/releases/download/v1.0.44/opencode-linux-x64.zip"
 cmd = "./opencode"
 args = ["acp"]
 
 [agent_servers.opencode.targets.windows-x86_64]
-archive = "https://github.com/sst/opencode/releases/v1.0.44/download/opencode-windows-x64.zip"
+archive = "https://github.com/sst/opencode/releases/download/v1.0.44/opencode-windows-x64.zip"
 cmd = "./opencode.exe"
 args = ["acp"]

+ 1 - 1
script/publish.ts

@@ -87,7 +87,7 @@ for (const file of pkgjsons) {
 const extensionToml = new URL("../packages/extensions/zed/extension.toml", import.meta.url).pathname
 let toml = await Bun.file(extensionToml).text()
 toml = toml.replace(/^version = "[^"]+"/m, `version = "${Script.version}"`)
-toml = toml.replaceAll(/releases\/v[^/]+\//g, `releases/v${Script.version}/`)
+toml = toml.replaceAll(/releases\/download\/v[^/]+\//g, `releases/download/v${Script.version}/`)
 console.log("updated:", extensionToml)
 await Bun.file(extensionToml).write(toml)