mirror of
https://github.com/aljazceru/opencode.git
synced 2026-01-11 03:45:02 +01:00
ci: tweak
This commit is contained in:
@@ -148,10 +148,11 @@ if (!snapshot) {
|
|||||||
"",
|
"",
|
||||||
"build() {",
|
"build() {",
|
||||||
` cd "opencode-\${pkgver}"`,
|
` cd "opencode-\${pkgver}"`,
|
||||||
|
` bun install`,
|
||||||
" cd packages/tui",
|
" cd packages/tui",
|
||||||
` CGO_ENABLED=0 go build -ldflags="-s -w -X main.Version=\${pkgver}" -o tui cmd/opencode/main.go`,
|
` CGO_ENABLED=0 go build -ldflags="-s -w -X main.Version=\${pkgver}" -o tui cmd/opencode/main.go`,
|
||||||
" cd ../opencode",
|
" cd ../opencode",
|
||||||
` bun build --define OPENCODE_TUI_PATH="'../tui/tui'" --define OPENCODE_VERSION="'\${pkgver}'" --compile --target=bun-linux-x64 --outfile=opencode ./src/index.ts`,
|
` bun build --define OPENCODE_TUI_PATH="'$(realpath ../tui/tui)'" --define OPENCODE_VERSION="'\${pkgver}'" --compile --target=bun-linux-x64 --outfile=opencode ./src/index.ts`,
|
||||||
"}",
|
"}",
|
||||||
"",
|
"",
|
||||||
"package() {",
|
"package() {",
|
||||||
|
|||||||
Reference in New Issue
Block a user