1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2024-12-27 01:33:39 +02:00

fix: disable upx for now

This commit is contained in:
Carlos Alexandro Becker 2023-05-05 04:26:12 +00:00
parent b35b8b29d9
commit aaa9da33d5
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940
2 changed files with 14 additions and 2 deletions

View File

@ -42,8 +42,9 @@ builds:
universal_binaries:
- replace: false
upx:
- enabled: true
# temporarely disables until we add better filters for platforms et al, and test more.
# upx:
# - enabled: true
checksum:
name_template: 'checksums.txt'

View File

@ -14,6 +14,15 @@ the _de facto_ tool for the job.
GoReleaser has been able to integrate with it via custom [build hooks][bhooks],
and now UPX has its own configuration section:
!!! warning
`upx` does not support all platforms! Make sure to check
[their issues][upx-issues] and to test your packed binaries first.
Namely, _macOS Ventura_ is not supported at the moment.
Future GoReleaser releases will add more filters so you can cherry-pick
which platforms you want to pack or not.
```yaml
# .goreleaser.yaml
upx:
@ -37,3 +46,5 @@ upx:
!!! info
If `upx` is not in `$PATH`, GoReleaser will automatically avoid running it.
[upx-issues]: https://github.com/upx/upx/issues