diff options
| author | Dax Raad <[email protected]> | 2025-07-02 22:53:04 -0400 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2025-07-02 22:53:04 -0400 |
| commit | c663fbc3eee2ab38617445098a9acd19ef45a9c1 (patch) | |
| tree | c07f624a656657dee2bc4d9167fefb167e241066 /packages | |
| parent | 2090bab537dc47a68f22ed02e6ecef60c105ec0b (diff) | |
| download | opencode-c663fbc3eee2ab38617445098a9acd19ef45a9c1.tar.gz opencode-c663fbc3eee2ab38617445098a9acd19ef45a9c1.zip | |
remove need for glibc
Diffstat (limited to 'packages')
| -rwxr-xr-x | packages/opencode/script/publish.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/opencode/script/publish.ts b/packages/opencode/script/publish.ts index 53c6c9165..3f4c20053 100755 --- a/packages/opencode/script/publish.ts +++ b/packages/opencode/script/publish.ts @@ -40,7 +40,7 @@ for (const [os, arch] of targets) { console.log(`building ${os}-${arch}`) const name = `${pkg.name}-${os}-${arch}` await $`mkdir -p dist/${name}/bin` - await $`GOOS=${os} GOARCH=${GOARCH[arch]} go build -ldflags="-s -w -X main.Version=${version}" -o ../opencode/dist/${name}/bin/tui ../tui/cmd/opencode/main.go`.cwd( + await $`CGO_ENABLED=0 GOOS=${os} GOARCH=${GOARCH[arch]} go build -ldflags="-s -w -X main.Version=${version}" -o ../opencode/dist/${name}/bin/tui ../tui/cmd/opencode/main.go`.cwd( "../tui", ) await $`bun build --define OPENCODE_VERSION="'${version}'" --compile --minify --target=bun-${os}-${arch} --outfile=dist/${name}/bin/opencode ./src/index.ts ./dist/${name}/bin/tui` |
