From 34fbadeac3864ba5299ddc3d83b3b0c4bc5c3475 Mon Sep 17 00:00:00 2001 From: viviman <962464Nas> Date: Mon, 23 May 2022 22:00:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=B3=BB=E7=BB=9F=E6=8E=A7?= =?UTF-8?q?=E5=88=B6=20=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../data_func/go_to_tray/demo04/.gitignore | 2 + .../go_to_tray/demo04/.goreleaser.yaml | 40 +++++++++++++++++++ .../data_func/go_to_tray/demo04/amd-linux.bat | 6 --- .../data_func/go_to_tray/demo04/arm-linux.bat | 6 --- .../data_func/go_to_tray/demo04/mac.bat | 9 ----- 5 files changed, 42 insertions(+), 21 deletions(-) create mode 100644 golang_learn/data_func/go_to_tray/demo04/.gitignore create mode 100644 golang_learn/data_func/go_to_tray/demo04/.goreleaser.yaml delete mode 100644 golang_learn/data_func/go_to_tray/demo04/amd-linux.bat delete mode 100644 golang_learn/data_func/go_to_tray/demo04/arm-linux.bat delete mode 100644 golang_learn/data_func/go_to_tray/demo04/mac.bat diff --git a/golang_learn/data_func/go_to_tray/demo04/.gitignore b/golang_learn/data_func/go_to_tray/demo04/.gitignore new file mode 100644 index 0000000..cde0123 --- /dev/null +++ b/golang_learn/data_func/go_to_tray/demo04/.gitignore @@ -0,0 +1,2 @@ + +dist/ diff --git a/golang_learn/data_func/go_to_tray/demo04/.goreleaser.yaml b/golang_learn/data_func/go_to_tray/demo04/.goreleaser.yaml new file mode 100644 index 0000000..74e2b94 --- /dev/null +++ b/golang_learn/data_func/go_to_tray/demo04/.goreleaser.yaml @@ -0,0 +1,40 @@ +# This is an example .goreleaser.yml file with some sensible defaults. +# Make sure to check the documentation at https://goreleaser.com +# run : goreleaser --snapshot --skip-publish --rm-dist +before: + hooks: + # You may remove this if you don't use go modules. + - go mod tidy + # you may remove this if you don't need go generate + # - go generate ./... +builds: + - env: + - CGO_ENABLED=0 + id: "hyTool" + binary: "hyTool" + ldflags: -s -w -H=windowsgui + goos: + - linux + # - windows + goarch: + # - "386" + - amd64 + - arm + # - arm64 +archives: + - replacements: + darwin: Darwin + linux: Linux + windows: Windows + 386: i386 + amd64: x86_64 +checksum: + name_template: 'checksums.txt' +snapshot: + name_template: "v1.0.0-hyTool" +changelog: + sort: asc + filters: + exclude: + - '^docs:' + - '^test:' diff --git a/golang_learn/data_func/go_to_tray/demo04/amd-linux.bat b/golang_learn/data_func/go_to_tray/demo04/amd-linux.bat deleted file mode 100644 index 0afa1dc..0000000 --- a/golang_learn/data_func/go_to_tray/demo04/amd-linux.bat +++ /dev/null @@ -1,6 +0,0 @@ -SET CC=gcc -set GO111MODULE=on -SET CGO_ENABLED=0 -set GOARCH=amd64 -set GOOS=linux -go build main.go diff --git a/golang_learn/data_func/go_to_tray/demo04/arm-linux.bat b/golang_learn/data_func/go_to_tray/demo04/arm-linux.bat deleted file mode 100644 index 0b0b6d4..0000000 --- a/golang_learn/data_func/go_to_tray/demo04/arm-linux.bat +++ /dev/null @@ -1,6 +0,0 @@ -SET CC=gcc -set GO111MODULE=on -SET CGO_ENABLED=0 -set GOARCH=arm -set GOOS=linux -go build main.go diff --git a/golang_learn/data_func/go_to_tray/demo04/mac.bat b/golang_learn/data_func/go_to_tray/demo04/mac.bat deleted file mode 100644 index 34d3546..0000000 --- a/golang_learn/data_func/go_to_tray/demo04/mac.bat +++ /dev/null @@ -1,9 +0,0 @@ -SET CC=gcc -SET CGO_ENABLED=1 -# shellcheck disable=SC2121 -set GOARCH=amd64 -# shellcheck disable=SC2121 -set GOOS=darwin -rsrc -manifest main.manifest -ico main.ico -o main.syso -go generate -go build -gccgoflags="-DDARWIN -x objective-c -fobjc-arc" -ldflags="framework=Cocoa" .