From 17b07877e596a0ec79436f2595d60722804f5c54 Mon Sep 17 00:00:00 2001 From: Dax Raad Date: Tue, 12 Aug 2025 17:44:27 -0400 Subject: [PATCH] ci: disable AUR packaging in publish workflow --- .github/workflows/publish.yml | 10 ++-- packages/opencode/script/publish.ts | 76 ++++++++++++++--------------- 2 files changed, 43 insertions(+), 43 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 12b1d4af..762be8de 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 AUR run: | @@ -60,7 +60,7 @@ jobs: chmod 600 ~/.ssh/id_rsa git config --global user.email "opencode@sst.dev" 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 dependencies run: bun install diff --git a/packages/opencode/script/publish.ts b/packages/opencode/script/publish.ts index b0520fb5..9ceeb387 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://aur@aur.archlinux.org/${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://aur@aur.archlinux.org/${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 formula const homebrewFormula = [