mirror of
https://github.com/sst/opencode.git
synced 2025-08-04 13:30:52 +00:00
ci: aur
This commit is contained in:
parent
f865cacfb8
commit
ce611963c3
1 changed files with 12 additions and 9 deletions
|
@ -142,7 +142,7 @@ if (!snapshot) {
|
||||||
"# Maintainer: dax",
|
"# Maintainer: dax",
|
||||||
"# Maintainer: adam",
|
"# Maintainer: adam",
|
||||||
"",
|
"",
|
||||||
"pkgname='opencode-bin'",
|
"pkgname='${pkg}'",
|
||||||
`pkgver=${version.split("-")[0]}`,
|
`pkgver=${version.split("-")[0]}`,
|
||||||
"options=('!debug' '!strip')",
|
"options=('!debug' '!strip')",
|
||||||
"pkgrel=1",
|
"pkgrel=1",
|
||||||
|
@ -166,14 +166,17 @@ if (!snapshot) {
|
||||||
"",
|
"",
|
||||||
].join("\n")
|
].join("\n")
|
||||||
|
|
||||||
await $`rm -rf ./dist/aur-opencode-bin`
|
for (const pkg of ["opencode", "opencode-bin"]) {
|
||||||
|
await $`rm -rf ./dist/aur-${pkg}`
|
||||||
await $`git clone ssh://aur@aur.archlinux.org/opencode-bin.git ./dist/aur-opencode-bin`
|
await $`git clone ssh://aur@aur.archlinux.org/opencode-bin.git ./dist/aur-${pkg}`
|
||||||
await Bun.file("./dist/aur-opencode-bin/PKGBUILD").write(pkgbuild)
|
await Bun.file(`./dist/aur-${pkg}/PKGBUILD`).write(
|
||||||
await $`cd ./dist/aur-opencode-bin && makepkg --printsrcinfo > .SRCINFO`
|
pkgbuild.replace("${pkg}", pkg),
|
||||||
await $`cd ./dist/aur-opencode-bin && git add PKGBUILD .SRCINFO`
|
)
|
||||||
await $`cd ./dist/aur-opencode-bin && git commit -m "Update to v${version}"`
|
await $`cd ./dist/aur-${pkg} && makepkg --printsrcinfo > .SRCINFO`
|
||||||
if (!dry) await $`cd ./dist/aur-opencode-bin && git push`
|
await $`cd ./dist/aur-${pkg} && git add PKGBUILD .SRCINFO`
|
||||||
|
await $`cd ./dist/aur-${pkg} && git commit -m "Update to v${version}"`
|
||||||
|
if (!dry) await $`cd ./dist/aur-${pkg} && git push`
|
||||||
|
}
|
||||||
|
|
||||||
// Homebrew formula
|
// Homebrew formula
|
||||||
const homebrewFormula = [
|
const homebrewFormula = [
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue