瀏覽代碼

fix version ldflags

Dax Raad 1 年之前
父節點
當前提交
f2f6efdd35
共有 1 個文件被更改,包括 6 次插入 和 0 次删除
  1. 6 0
      .goreleaser.yml

+ 6 - 0
.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: