|
|
@@ -15,12 +15,6 @@ for (const filepath of new Bun.Glob("*/package.json").scanSync({ cwd: "./dist" }
|
|
|
console.log("binaries", binaries)
|
|
|
const version = Object.values(binaries)[0]
|
|
|
|
|
|
-{
|
|
|
- const name = `${pkg.name}-${process.platform}-${process.arch}`
|
|
|
- console.log(`smoke test: running dist/${name}/bin/opencode --version`)
|
|
|
- await $`./dist/${name}/bin/opencode --version`
|
|
|
-}
|
|
|
-
|
|
|
await $`mkdir -p ./dist/${pkg.name}`
|
|
|
await $`cp -r ./bin ./dist/${pkg.name}/bin`
|
|
|
await $`cp ./script/postinstall.mjs ./dist/${pkg.name}/postinstall.mjs`
|
|
|
@@ -60,15 +54,6 @@ for (const tag of tags) {
|
|
|
}
|
|
|
|
|
|
if (!Script.preview) {
|
|
|
- // Create archives for GitHub release
|
|
|
- for (const key of Object.keys(binaries)) {
|
|
|
- if (key.includes("linux")) {
|
|
|
- await $`tar -czf ../../${key}.tar.gz *`.cwd(`dist/${key}/bin`)
|
|
|
- } else {
|
|
|
- await $`zip -r ../../${key}.zip *`.cwd(`dist/${key}/bin`)
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
const image = "ghcr.io/anomalyco/opencode"
|
|
|
const platforms = "linux/amd64,linux/arm64"
|
|
|
const tags = [`${image}:${version}`, `${image}:latest`]
|