diff --git a/packages/console/app/src/routes/download/index.tsx b/packages/console/app/src/routes/download/index.tsx
index 31ce49617..a19b97aa0 100644
--- a/packages/console/app/src/routes/download/index.tsx
+++ b/packages/console/app/src/routes/download/index.tsx
@@ -8,7 +8,6 @@ import { Faq } from "~/component/faq"
import desktopAppIcon from "../../asset/lander/opencode-desktop-icon.png"
import { Legal } from "~/component/legal"
import { config } from "~/config"
-import { github } from "~/lib/github"
function CopyStatus() {
return (
@@ -20,14 +19,7 @@ function CopyStatus() {
}
export default function Download() {
- const githubData = createAsync(() => github(), {
- deferStream: true,
- })
- const download = () => {
- const version = githubData()?.release.tag_name
- if (!version) return null
- return `https://github.com/sst/opencode/releases/download/${version}`
- }
+ const downloadUrl = "https://github.com/sst/opencode/releases/latest/download"
const handleCopyClick = (command: string) => (event: Event) => {
const button = event.currentTarget as HTMLButtonElement
navigator.clipboard.writeText(command)
@@ -115,7 +107,7 @@ export default function Download() {
macOS (Apple Silicon)
-
+
Download
@@ -131,7 +123,7 @@ export default function Download() {
macOS (Intel)
-
+
Download
@@ -154,7 +146,7 @@ export default function Download() {
Windows (x64)
-
+
Download
@@ -170,7 +162,7 @@ export default function Download() {
Linux (.deb)
-
+
Download
@@ -186,7 +178,7 @@ export default function Download() {
Linux (.rpm)
-
+
Download