fix: upgrade to latest UPX (currently 5.0.2)
This commit is contained in:
parent
2d2ba0d81e
commit
676480960d
|
|
@ -74,9 +74,7 @@ RUN --mount=type=secret,id=github_token,required=false --mount=type=bind,source=
|
||||||
auth=(-H "Authorization: Bearer $(cat /run/secrets/github_token)")
|
auth=(-H "Authorization: Bearer $(cat /run/secrets/github_token)")
|
||||||
fi
|
fi
|
||||||
mkdir /opt/upx
|
mkdir /opt/upx
|
||||||
# https://api.github.com/repos/upx/upx/releases/latest -> points to 5.0.1 which crashes with "3972 Segmentation fault (core dumped) docker --version"
|
upx_download_url=$(curl "${auth[@]:-}" "https://api.github.com/repos/upx/upx/releases/latest" | grep browser_download_url | grep "${upx_arch}_linux.tar.xz" | cut "-d\"" -f4)
|
||||||
# https://api.github.com/repos/upx/upx/releases/154915740 -> points to 4.2.4
|
|
||||||
upx_download_url=$(curl "${auth[@]:-}" "https://api.github.com/repos/upx/upx/releases/154915740" | grep browser_download_url | grep "${upx_arch}_linux.tar.xz" | cut "-d\"" -f4)
|
|
||||||
|
|
||||||
echo "Downloading [$upx_download_url]..."
|
echo "Downloading [$upx_download_url]..."
|
||||||
curl "$upx_download_url" | tar Jxv -C /opt/upx --strip-components=1
|
curl "$upx_download_url" | tar Jxv -C /opt/upx --strip-components=1
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue