Fix opencode

This commit is contained in:
Ryan Hughes committed 2025-11-11 11:24:23 -05:00
1 parent ed25b693a1
commit 18227b6a81
2 files changed
+11 -5

No files matched your search

+3 -3
View File
@@ -1,6 +1,6 @@
pkgbase = opencode pkgbase = opencode
pkgdesc = The AI coding agent built for the terminal. pkgdesc = The AI coding agent built for the terminal.
pkgver = 1.0.15 pkgver = 1.0.55
pkgrel = 1 pkgrel = 1
url = https://github.com/sst/opencode url = https://github.com/sst/opencode
arch = aarch64 arch = aarch64
@@ -16,7 +16,7 @@ pkgbase = opencode
conflicts = opencode-bin conflicts = opencode-bin
options = !debug options = !debug
options = !strip options = !strip
source = opencode-1.0.15.tar.gz::https://github.com/sst/opencode/archive/v1.0.15.tar.gz source = opencode-1.0.55.tar.gz::https://github.com/sst/opencode/archive/v1.0.55.tar.gz
sha256sums = SKIP sha256sums = 3db64a1cd6f0b1163e50092aeac73ba21144d8bacbe52c70b1493ba2e52dd05b
pkgname = opencode pkgname = opencode
+8 -2
View File
@@ -24,9 +24,15 @@ build() {
# Ensure npm is in PATH for bun's shell # Ensure npm is in PATH for bun's shell
export PATH="/usr/bin:$PATH" export PATH="/usr/bin:$PATH"
# Install workspace dependencies from root
bun install bun install
cd ./packages/opencode
OPENCODE_CHANNEL=latest OPENCODE_VERSION=1.0.55 bun run ./script/build.ts --single # Install from package directory to create local node_modules with workspace symlinks
cd packages/opencode
bun install
# Build the binary
OPENCODE_CHANNEL=latest OPENCODE_VERSION=${pkgver} bun run build --single
} }
package() { package() {