Skip to content
This repository was archived by the owner on Nov 20, 2022. It is now read-only.

Commit 8f6aee6

Browse files
committed
ci: 编译添加UPX压缩
1 parent 9cb2921 commit 8f6aee6

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/release.yml

+3
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ jobs:
1515
- uses: actions/setup-go@v2
1616
with:
1717
go-version: '^1.16'
18+
- run: |
19+
(New-Object System.Net.WebClient).DownloadFile("https://github.com/upx/upx/releases/download/v3.96/upx-3.96-win64.zip",$(Get-Location).Path+"\upx.zip");
20+
7z e upx.zip -r -o".\" upx.exe
1821
- run: |
1922
go install github.com/tc-hib/go-winres@latest
2023
go-winres simply --icon public/favicon.png

.goreleaser.yml

+3
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ builds:
1212
- amd64
1313
ldflags:
1414
- -X main.Version={{.Tag}} -X main.BuildDate={{time "20060102"}}
15+
hooks:
16+
post:
17+
- ./upx.exe "{{ .Path }}"
1518
archives:
1619
- replacements:
1720
windows: Windows

0 commit comments

Comments
 (0)