do not autoupgrade snapshot builds

This commit is contained in:
Dax Raad
2025-06-17 01:17:50 -04:00
parent 3fe163416d
commit 9c5616521d
2 changed files with 6 additions and 0 deletions

View File

@@ -23,6 +23,10 @@ export namespace Installation {
}
}
export function isSnapshot() {
return VERSION.startsWith("0.0.0")
}
export async function method() {
if (process.execPath.includes(path.join(".opencode", "bin"))) return "curl"
const exec = process.execPath.toLowerCase()