From c8199a1dc44c20064e0d3aea190cdf0640d0b16f Mon Sep 17 00:00:00 2001 From: xishang0128 Date: Sat, 24 Feb 2024 04:31:56 +0800 Subject: [PATCH] 1 --- .github/workflows/build.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 043462a729..a6a0036ae9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -88,8 +88,11 @@ jobs: CGO_ENABLED: ${{matrix.jobs.cgo}} run: | go build -v -tags "with_gvisor" -trimpath -ldflags "-X 'github.com/metacubex/mihomo/constant.Version=${VERSION}' -X 'github.com/metacubex/mihomo/constant.BuildTime=${BUILDTIME}' -w -s -buildid=" - zip -r mihomo-${GOOS}-${{matrix.jobs.output}}-${VERSION}.zip mihomo.exe - tar -czvf mihomo-${GOOS}-${{matrix.jobs.output}}-${VERSION}.tar.gz mihomo + if [ "${GOOS}" = "windows" ]; then + zip -r mihomo-${GOOS}-${{matrix.jobs.output}}-${VERSION}.zip mihomo.exe + else + tar -czvf mihomo-${GOOS}-${{matrix.jobs.output}}-${VERSION}.tar.gz mihomo + fi - name: Archive production artifacts uses: actions/upload-artifact@v4