2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 03:07:20 +08:00

feat: 测试移除upx

This commit is contained in:
2026-01-24 21:20:46 +08:00
parent d64dca4c2b
commit 92425e99cc
2 changed files with 0 additions and 18 deletions

View File

@@ -84,10 +84,6 @@ jobs:
LDFLAGS="${LDFLAGS} -X 'github.com/acepanel/panel/internal/app.BuildHost=${BUILD_HOST}'"
go build -trimpath -buildvcs=false -ldflags "${LDFLAGS}" -o ace-${{ matrix.goarch }} ./cmd/ace
go build -trimpath -buildvcs=false -ldflags "${LDFLAGS}" -o cli-${{ matrix.goarch }} ./cmd/cli
- name: Compress ${{ matrix.goarch }}
run: |
upx --best --lzma ace-${{ matrix.goarch }}
upx --best --lzma cli-${{ matrix.goarch }}
- name: Upload artifact
uses: actions/upload-artifact@v6
with:

View File

@@ -47,20 +47,6 @@ builds:
- -X 'github.com/acepanel/panel/internal/app.BuildUser={{ .Env.USER }}'
- -X 'github.com/acepanel/panel/internal/app.BuildHost={{ .Env.HOSTNAME }}'
upx:
- enabled: true
# Filter by build ID.
ids:
- ace
- cli
# Compress argument.
# Valid options are from '1' (faster) to '9' (better), and 'best'.
compress: best
# Whether to try LZMA (slower).
lzma: true
# Whether to try all methods and filters (slow).
brute: false
archives:
- id: panel
ids: