From e26ce4ce860f42859c8864087d0e5b35edbe646b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=97=E5=AD=90?= Date: Sun, 25 Jun 2023 00:59:25 +0800 Subject: [PATCH] fix: goreleaser --- .goreleaser.yaml | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .goreleaser.yaml diff --git a/.goreleaser.yaml b/.goreleaser.yaml new file mode 100644 index 00000000..d92648fb --- /dev/null +++ b/.goreleaser.yaml @@ -0,0 +1,41 @@ +project_name: panel +builds: + - + id: panel + binary: panel + env: + - CGO_ENABLED=0 + goos: + - linux + goarch: + - amd64 + - arm64 + - s390x + goamd64: + - v2 + - v3 + ldflags: + - -s -w --extldflags "-static -fpic" + +archives: + - + id: panel-archive + builds: + - panel + format: zip + meta: true + name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}" + builds_info: + group: root + owner: root + mode: 0644 + mtime: 2008-01-02T15:04:05Z + wrap_in_directory: false + strip_parent_binary_folder: true + rlcp: true + files: + - LICENSE + - public/* + - storage/* + - .env.example + allow_different_binary_count: true