The open source coding agent.
TypeScript
ci: disable AUR packaging in publish workflow
Dax Raad17b07877e596
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.ymlindex 12b1d4afdd6..762be8de4e5 100644--- a/.github/workflows/publish.yml+++ b/.github/workflows/publish.yml@@ -48,10 +48,10 @@ jobs:restore-keys: |${{ runner.os }}-bun-- - name: Install makepkg- run: |- sudo apt-get update- sudo apt-get install -y pacman-package-manager+ # - name: Install makepkg+ # run: |+ # sudo apt-get update+ # sudo apt-get install -y pacman-package-manager- name: Setup SSH for AURrun: |@@ -60,7 +60,7 @@ jobs:chmod 600 ~/.ssh/id_rsagit config --global user.email "[email protected]"git config --global user.name "opencode"- ssh-keyscan -H aur.archlinux.org >> ~/.ssh/known_hosts+ # ssh-keyscan -H aur.archlinux.org >> ~/.ssh/known_hosts- name: Install dependenciesrun: bun installdiff --git a/packages/opencode/script/publish.ts b/packages/opencode/script/publish.tsindex b0520fb5aba..9ceeb387a74 100755--- a/packages/opencode/script/publish.ts+++ b/packages/opencode/script/publish.ts@@ -97,45 +97,45 @@ if (!snapshot) {const macX64Sha = await $`sha256sum ./dist/opencode-darwin-x64.zip | cut -d' ' -f1`.text().then((x) => x.trim())const macArm64Sha = await $`sha256sum ./dist/opencode-darwin-arm64.zip | cut -d' ' -f1`.text().then((x) => x.trim())- // AUR package- const pkgbuild = [- "# Maintainer: dax",- "# Maintainer: adam",- "",- "pkgname='${pkg}'",- `pkgver=${version.split("-")[0]}`,- "options=('!debug' '!strip')",- "pkgrel=1",- "pkgdesc='The AI coding agent built for the terminal.'",- "url='https://github.com/sst/opencode'",- "arch=('aarch64' 'x86_64')",- "license=('MIT')",- "provides=('opencode')",- "conflicts=('opencode')",- "depends=('fzf' 'ripgrep')",- "",- `source_aarch64=("\${pkgname}_\${pkgver}_aarch64.zip::https://github.com/sst/opencode/releases/download/v${version}/opencode-linux-arm64.zip")`,- `sha256sums_aarch64=('${arm64Sha}')`,- "",- `source_x86_64=("\${pkgname}_\${pkgver}_x86_64.zip::https://github.com/sst/opencode/releases/download/v${version}/opencode-linux-x64.zip")`,- `sha256sums_x86_64=('${x64Sha}')`,- "",- "package() {",- ' install -Dm755 ./opencode "${pkgdir}/usr/bin/opencode"',- "}",- "",- ].join("\n")+ // // AUR package+ // const pkgbuild = [+ // "# Maintainer: dax",+ // "# Maintainer: adam",+ // "",+ // "pkgname='${pkg}'",+ // `pkgver=${version.split("-")[0]}`,+ // "options=('!debug' '!strip')",+ // "pkgrel=1",+ // "pkgdesc='The AI coding agent built for the terminal.'",+ // "url='https://github.com/sst/opencode'",+ // "arch=('aarch64' 'x86_64')",+ // "license=('MIT')",+ // "provides=('opencode')",+ // "conflicts=('opencode')",+ // "depends=('fzf' 'ripgrep')",+ // "",+ // `source_aarch64=("\${pkgname}_\${pkgver}_aarch64.zip::https://github.com/sst/opencode/releases/download/v${version}/opencode-linux-arm64.zip")`,+ // `sha256sums_aarch64=('${arm64Sha}')`,+ // "",+ // `source_x86_64=("\${pkgname}_\${pkgver}_x86_64.zip::https://github.com/sst/opencode/releases/download/v${version}/opencode-linux-x64.zip")`,+ // `sha256sums_x86_64=('${x64Sha}')`,+ // "",+ // "package() {",+ // ' install -Dm755 ./opencode "${pkgdir}/usr/bin/opencode"',+ // "}",+ // "",+ // ].join("\n")- for (const pkg of ["opencode", "opencode-bin"]) {- await $`rm -rf ./dist/aur-${pkg}`- await $`git clone ssh://[email protected]/${pkg}.git ./dist/aur-${pkg}`- await $`cd ./dist/aur-${pkg} && git checkout master`- await Bun.file(`./dist/aur-${pkg}/PKGBUILD`).write(pkgbuild.replace("${pkg}", pkg))- await $`cd ./dist/aur-${pkg} && makepkg --printsrcinfo > .SRCINFO`- 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`- }+ // for (const pkg of ["opencode", "opencode-bin"]) {+ // await $`rm -rf ./dist/aur-${pkg}`+ // await $`git clone ssh://[email protected]/${pkg}.git ./dist/aur-${pkg}`+ // await $`cd ./dist/aur-${pkg} && git checkout master`+ // await Bun.file(`./dist/aur-${pkg}/PKGBUILD`).write(pkgbuild.replace("${pkg}", pkg))+ // await $`cd ./dist/aur-${pkg} && makepkg --printsrcinfo > .SRCINFO`+ // 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 formulaconst homebrewFormula = [