mirror of
https://github.com/Picocrypt/Picocrypt.git
synced 2026-03-11 14:04:23 +00:00
add: upx compression for Linux build & fix: optimize upx build for Windows
This commit is contained in:
parent
e67c55673f
commit
e9e6c134c2
4 changed files with 14 additions and 2 deletions
6
.github/workflows/build-linux.yml
vendored
6
.github/workflows/build-linux.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
2
.github/workflows/build-windows.yml
vendored
2
.github/workflows/build-windows.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
6
.github/workflows/pr-test-build-linux.yml
vendored
6
.github/workflows/pr-test-build-linux.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
2
.github/workflows/pr-test-build-windows.yml
vendored
2
.github/workflows/pr-test-build-windows.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue