mirror of
https://github.com/anomalyco/opencode.git
synced 2026-04-24 23:04:55 +00:00
sync
This commit is contained in:
@@ -15,8 +15,6 @@ process.chdir(dir)
|
|||||||
import pkg from "../package.json"
|
import pkg from "../package.json"
|
||||||
import { Script } from "@opencode-ai/script"
|
import { Script } from "@opencode-ai/script"
|
||||||
|
|
||||||
console.log("release", Script.release)
|
|
||||||
|
|
||||||
// Fetch and generate models.dev snapshot
|
// Fetch and generate models.dev snapshot
|
||||||
const modelsData = process.env.MODELS_DEV_API_JSON
|
const modelsData = process.env.MODELS_DEV_API_JSON
|
||||||
? await Bun.file(process.env.MODELS_DEV_API_JSON).text()
|
? await Bun.file(process.env.MODELS_DEV_API_JSON).text()
|
||||||
@@ -189,7 +187,7 @@ if (Script.release) {
|
|||||||
await $`zip -r ../../${key}.zip *`.cwd(`dist/${key}/bin`)
|
await $`zip -r ../../${key}.zip *`.cwd(`dist/${key}/bin`)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
await $`gh release upload v${Script.release} ./dist/*.zip ./dist/*.tar.gz --clobber`
|
await $`gh release upload ${Script.release} ./dist/*.zip ./dist/*.tar.gz --clobber`
|
||||||
}
|
}
|
||||||
|
|
||||||
export { binaries }
|
export { binaries }
|
||||||
|
|||||||
Reference in New Issue
Block a user