From fa7c54ada590d6c196266dc0e58dbf3b782d73ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=97=E5=AD=90?= Date: Mon, 20 May 2024 02:16:14 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=E6=89=93=E5=8C=85?= =?UTF-8?q?=E5=A4=A7=E5=B0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .goreleaser.yaml | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 1e9fad5d..a1bef805 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -1,7 +1,7 @@ project_name: panel + builds: - - - id: panel + - id: panel binary: panel env: - CGO_ENABLED=0 @@ -15,9 +15,21 @@ builds: - v2 ldflags: - -s -w --extldflags "-static" + +upx: + - enabled: true + # Filter by build ID. + ids: [ panel ] + # 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: true + archives: - - - id: panel-archive + - id: panel-archive builds: - panel format: zip @@ -36,16 +48,13 @@ archives: gitlab_urls: api: https://git.haozi.net/api/v4/ download: https://git.haozi.net - # set to true if you use a self-signed certificate skip_tls_verify: false - # set to true if you want to upload to the Package Registry rather than attachments # Only works with GitLab 13.5+ # # Since: v1.3 use_package_registry: true - # Set this if you set GITLAB_TOKEN to the value of CI_JOB_TOKEN. # # Since: v1.11