add: upx compression for Linux build & fix: optimize upx build for Windows

This commit is contained in:
Aleksandr Menenkov 2025-07-31 19:52:04 +03:00
parent e67c55673f
commit e9e6c134c2
No known key found for this signature in database
GPG key ID: 549A8FA60EDFE762
4 changed files with 14 additions and 2 deletions

View file

@ -41,6 +41,12 @@ jobs:
CGO_ENABLED: 1
GOAMD64: v1
- name: Compress with upx
run: |
wget -O upx.tar.xz https://github.com/upx/upx/releases/download/v5.0.2/upx-5.0.2-amd64_linux.tar.xz
tar -xf upx.tar.xz
upx-5.0.2-amd64_linux/upx --lzma src/Picocrypt
- name: Package as .deb
run: |
wget https://github.com/user-attachments/files/16136712/Picocrypt.zip

View file

@ -62,7 +62,7 @@ jobs:
run: |
Invoke-WebRequest -OutFile upx.zip https://github.com/user-attachments/files/15894908/upx-4.2.4-win64.zip
Expand-Archive -DestinationPath upx upx.zip
upx/upx-4.2.4-win64/upx.exe --lzma --brute -o src/Picocrypt.exe src/5.exe
upx/upx-4.2.4-win64/upx.exe --lzma -o src/Picocrypt.exe src/5.exe
- name: Upload artifact
uses: actions/upload-artifact@v4

View file

@ -38,6 +38,12 @@ jobs:
CGO_ENABLED: 1
GOAMD64: v1
- name: Compress with upx
run: |
wget -O upx.tar.xz https://github.com/upx/upx/releases/download/v5.0.2/upx-5.0.2-amd64_linux.tar.xz
tar -xf upx.tar.xz
upx-5.0.2-amd64_linux/upx --lzma src/Picocrypt
- name: Package as .deb
run: |
wget https://github.com/user-attachments/files/16136712/Picocrypt.zip

View file

@ -59,7 +59,7 @@ jobs:
run: |
Invoke-WebRequest -OutFile upx.zip https://github.com/user-attachments/files/15894908/upx-4.2.4-win64.zip
Expand-Archive -DestinationPath upx upx.zip
upx/upx-4.2.4-win64/upx.exe --lzma --brute -o src/Picocrypt.exe src/5.exe
upx/upx-4.2.4-win64/upx.exe --lzma -o src/Picocrypt.exe src/5.exe
- name: Upload artifact
uses: actions/upload-artifact@v4