Skip to content

Commit 6e77b80

Browse files
committed
Update upx version
Signed-off-by: Prabhu Subramanian <[email protected]>
1 parent b1d9267 commit 6e77b80

File tree

3 files changed

+17
-17
lines changed

3 files changed

+17
-17
lines changed

.github/workflows/release.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Use Node.js
1717
uses: actions/setup-node@v4
1818
with:
19-
node-version: 20.x
19+
node-version: 23.x
2020
registry-url: https://registry.npmjs.org/
2121
- uses: actions/setup-go@v5
2222
with:
@@ -33,10 +33,10 @@ jobs:
3333
./contrib/free_disk_space.sh
3434
- name: Release
3535
run: |
36-
wget https://github.com/upx/upx/releases/download/v4.2.4/upx-4.2.4-amd64_linux.tar.xz
37-
tar -xvf upx-4.2.4-amd64_linux.tar.xz
38-
chmod +x upx-4.2.4-amd64_linux/upx
39-
sudo cp upx-4.2.4-amd64_linux/upx /usr/local/bin/
36+
wget https://github.com/upx/upx/releases/download/v5.0.0/upx-5.0.0-amd64_linux.tar.xz
37+
tar -xvf upx-5.0.0-amd64_linux.tar.xz
38+
chmod +x upx-5.0.0-amd64_linux/upx
39+
sudo cp upx-5.0.0-amd64_linux/upx /usr/local/bin/
4040
npm config set //npm.pkg.github.com/:_authToken=$GITHUB_TOKEN
4141
npm config set //registry.npmjs.org/:_authToken=$NPMJS_AUTH_TOKEN
4242
bash build.sh

.github/workflows/test.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Use Node.js
1717
uses: actions/setup-node@v4
1818
with:
19-
node-version: 20.x
19+
node-version: 23.x
2020
registry-url: https://registry.npmjs.org/
2121
- uses: actions/setup-go@v5
2222
with:
@@ -36,10 +36,10 @@ jobs:
3636
./contrib/free_disk_space.sh
3737
- name: Build
3838
run: |
39-
wget https://github.com/upx/upx/releases/download/v4.2.4/upx-4.2.4-amd64_linux.tar.xz
40-
tar -xvf upx-4.2.4-amd64_linux.tar.xz
41-
chmod +x upx-4.2.4-amd64_linux/upx
42-
sudo cp upx-4.2.4-amd64_linux/upx /usr/local/bin/
39+
wget https://github.com/upx/upx/releases/download/v5.0.0/upx-5.0.0-amd64_linux.tar.xz
40+
tar -xvf upx-5.0.0-amd64_linux.tar.xz
41+
chmod +x upx-5.0.0-amd64_linux/upx
42+
sudo cp upx-5.0.0-amd64_linux/upx /usr/local/bin/
4343
bash build.sh
4444
pip3 install blint
4545
blint -i plugins -o /tmp/reports
@@ -77,7 +77,7 @@ jobs:
7777
- name: Use Node.js
7878
uses: actions/setup-node@v4
7979
with:
80-
node-version: 20.x
80+
node-version: 23.x
8181
registry-url: https://registry.npmjs.org/
8282
- uses: actions/setup-go@v5
8383
with:

build.ps1

+6-6
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,25 @@ New-Item -ItemType Directory -Path plugins\osquery -Force
22
New-Item -ItemType Directory -Path plugins\dosai -Force
33
New-Item -ItemType Directory -Path plugins\trivy -Force
44

5-
Invoke-WebRequest -Uri https://github.com/upx/upx/releases/download/v4.2.4/upx-4.2.4-win64.zip -UseBasicParsing -OutFile upx-4.2.4-win64.zip
6-
Expand-Archive -Path upx-4.2.4-win64.zip -DestinationPath . -Force
5+
Invoke-WebRequest -Uri https://github.com/upx/upx/releases/download/v5.0.0/upx-5.0.0-win64.zip -UseBasicParsing -OutFile upx-5.0.0-win64.zip
6+
Expand-Archive -Path upx-5.0.0-win64.zip -DestinationPath . -Force
77

88
Invoke-WebRequest -Uri https://github.com/osquery/osquery/releases/download/5.16.0/osquery-5.16.0.windows_x86_64.zip -UseBasicParsing -OutFile osquery-5.16.0.windows_x86_64.zip
99
Expand-Archive -Path osquery-5.16.0.windows_x86_64.zip -DestinationPath . -Force
1010
copy "osquery-5.16.0.windows_x86_64\Program Files\osquery\osqueryi.exe" plugins\osquery\osqueryi-windows-amd64.exe
11-
upx-4.2.4-win64\upx.exe -9 --lzma plugins\osquery\osqueryi-windows-amd64.exe
11+
upx-5.0.0-win64\upx.exe -9 --lzma plugins\osquery\osqueryi-windows-amd64.exe
1212
plugins\osquery\osqueryi-windows-amd64.exe --help
1313

1414
Invoke-WebRequest -Uri https://github.com/owasp-dep-scan/dosai/releases/latest/download/Dosai.exe -UseBasicParsing -OutFile plugins/dosai/dosai-windows-amd64.exe
1515

1616
cd thirdparty\trivy
1717
go build -ldflags "-H=windowsgui -s -w" -o build\trivy-windows-amd64.exe
18-
..\..\upx-4.2.4-win64\upx.exe -9 --lzma build\trivy-windows-amd64.exe
18+
..\..\upx-5.0.0-win64\upx.exe -9 --lzma build\trivy-windows-amd64.exe
1919
copy build\* ..\..\plugins\trivy\
2020
Remove-Item build -Recurse -Force
2121
cd ..\..
2222

2323
Remove-Item osquery-5.16.0.windows_x86_64 -Recurse -Force
2424
Remove-Item osquery-5.16.0.windows_x86_64.zip -Recurse -Force
25-
Remove-Item upx-4.2.4-win64 -Recurse -Force
26-
Remove-Item upx-4.2.4-win64.zip -Recurse -Force
25+
Remove-Item upx-5.0.0-win64 -Recurse -Force
26+
Remove-Item upx-5.0.0-win64.zip -Recurse -Force

0 commit comments

Comments
 (0)