fix version ldflags

Dax Raad created

Change summary

.goreleaser.yml | 6 ++++++
1 file changed, 6 insertions(+)

Detailed changes

.goreleaser.yml 🔗

@@ -4,9 +4,15 @@ before:
   hooks:
 builds:
   - env:
+      - CGO_ENABLED=0
     goos:
       - linux
       - darwin
+    goarch:
+      - amd64
+      - arm64
+    ldflags:
+      - -s -w -X github.com/opencode-ai/opencode/internal/version.Version={{.Version}}
     main: ./main.go
 
 archives: