From f391d9712aa5078395c973e27b17a91c49e8805f Mon Sep 17 00:00:00 2001 From: luotianqi777 Date: Thu, 9 Mar 2023 15:53:00 +0800 Subject: [PATCH] release add config file --- .goreleaser.yml | 64 +++++++++++++++++++++++++------------------------ 1 file changed, 33 insertions(+), 31 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 82f0277..69fa2f8 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,31 +1,33 @@ -project_name: opensca-cli -builds: - - env: - - CGO_ENABLED=0 - goos: - - linux - - windows - - darwin - goarch: - - 386 - - amd64 - - arm - - arm64 - goarm: - - 6 - - 7 - id: "opensca-cli" - dir: . - binary: "opensca-cli" - main: ./cli/ -archives: - - replacements: - darwin: Darwin - linux: Linux - windows: Windows - 386: i386 - amd64: x86_64 -checksum: - name_template: 'checksums.txt' -snapshot: - name_template: "{{.Tag}}" \ No newline at end of file +{ + "project_name": "opensca-cli", + "builds": + [ + { + "env": ["CGO_ENABLED=0"], + "goos": ["linux", "windows", "darwin"], + "goarch": [386, "amd64", "arm", "arm64"], + "goarm": [6, 7], + "id": "opensca-cli", + "dir": ".", + "binary": "opensca-cli", + "main": "./cli/", + }, + ], + "archives": + [ + { + "replacements": + { + "386": "i386", + "darwin": "Darwin", + "linux": "Linux", + "windows": "Windows", + "amd64": "x86_64", + }, + "files": ["LICENSE", "config.json", "README.md"], + "format": "zip", + }, + ], + "checksum": { "name_template": "checksums.txt" }, + "snapshot": { "name_template": "{{.Tag}}" }, +} -- Gitee