summaryrefslogtreecommitdiffhomepage
path: root/packages
diff options
context:
space:
mode:
authorChawye Hsu <[email protected]>2026-01-18 23:58:34 +0800
committerGitHub <[email protected]>2026-01-18 09:58:34 -0600
commitf7fef99ddddb5e8fffa10f392f193e263552d7d0 (patch)
tree236f22dfdd022a3f0414d16949ac10e6c6cfb537 /packages
parent2dcca4755d644b2ec66c7a284484101609db210b (diff)
downloadopencode-f7fef99ddddb5e8fffa10f392f193e263552d7d0.tar.gz
opencode-f7fef99ddddb5e8fffa10f392f193e263552d7d0.zip
refactor(installation): update scoop installation method (#9243)
Signed-off-by: Chawye Hsu <[email protected]>
Diffstat (limited to 'packages')
-rw-r--r--packages/opencode/src/installation/index.ts4
-rw-r--r--packages/web/src/content/docs/index.mdx3
2 files changed, 3 insertions, 4 deletions
diff --git a/packages/opencode/src/installation/index.ts b/packages/opencode/src/installation/index.ts
index dea312adb..d18c9e31a 100644
--- a/packages/opencode/src/installation/index.ts
+++ b/packages/opencode/src/installation/index.ts
@@ -158,7 +158,7 @@ export namespace Installation {
cmd = $`echo Y | choco upgrade opencode --version=${target}`
break
case "scoop":
- cmd = $`scoop install extras/opencode@${target}`
+ cmd = $`scoop install opencode@${target}`
break
default:
throw new Error(`Unknown method: ${method}`)
@@ -226,7 +226,7 @@ export namespace Installation {
}
if (detectedMethod === "scoop") {
- return fetch("https://raw.githubusercontent.com/ScoopInstaller/Extras/master/bucket/opencode.json", {
+ return fetch("https://raw.githubusercontent.com/ScoopInstaller/Main/master/bucket/opencode.json", {
headers: { Accept: "application/json" },
})
.then((res) => {
diff --git a/packages/web/src/content/docs/index.mdx b/packages/web/src/content/docs/index.mdx
index bee5bd3a3..8b3d3a9c8 100644
--- a/packages/web/src/content/docs/index.mdx
+++ b/packages/web/src/content/docs/index.mdx
@@ -98,8 +98,7 @@ You can also install it with the following commands:
- **Using Scoop**
```bash
- scoop bucket add extras
- scoop install extras/opencode
+ scoop install opencode
```
- **Using NPM**