diff --git a/CHANGELOG.md b/CHANGELOG.md index fc46132..69230b8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +# 1.2.3 (2024.12.20) + +* Pack binary with UPX + # 1.2.2 (2024.10.31) * Fix removing of current workspace if compose file does not exists diff --git a/Dockerfile.uclibc b/Dockerfile.uclibc index 1693e19..86a5682 100644 --- a/Dockerfile.uclibc +++ b/Dockerfile.uclibc @@ -2,9 +2,16 @@ FROM navrocky/buildroot-uclibc-toolchain:i686-2023.11.1 RUN set -x && \ apt-get update && \ - apt-get -y install cmake make python3-pip ninja-build && \ + apt-get -y --no-install-recommends install cmake make python3-pip ninja-build curl libmpc3 && \ pip install conan --break-system-packages +ENV UPX_VER=4.2.4 +RUN set -x && \ + curl -LO https://github.com/upx/upx/releases/download/v${UPX_VER}/upx-${UPX_VER}-amd64_linux.tar.xz && \ + xzdec upx-${UPX_VER}-amd64_linux.tar.xz | tar xf - && \ + install upx-${UPX_VER}-amd64_linux/upx /usr/bin/upx && \ + rm -rf upx-${UPX_VER}-amd64_linux upx-${UPX_VER}-amd64_linux.tar.xz + RUN conan profile detect --force && sed -i 's/x86_64/x86/g' ~/.conan2/profiles/default COPY conanfile.txt /sources/ @@ -19,4 +26,5 @@ COPY . /sources/ RUN set -x && \ cd /build && \ cmake /sources -DCMAKE_TOOLCHAIN_FILE=conan_toolchain.cmake -DCMAKE_BUILD_TYPE=Release -G Ninja && \ - cmake --build . + cmake --build . && \ + upx -9 cli/dcw diff --git a/install.sh b/install.sh index 00b0c0e..0c36c5e 100644 --- a/install.sh +++ b/install.sh @@ -2,7 +2,7 @@ set -e -curl -fL https://github.com/navrocky/dcw/releases/download/1.2.2/dcw -o /usr/local/bin/dcw +curl -fL https://github.com/navrocky/dcw/releases/download/1.2.3/dcw -o /usr/local/bin/dcw chmod +x /usr/local/bin/dcw curl -fL https://github.com/navrocky/dcw/raw/master/completion.bash -o /etc/bash_completion.d/dcw_completion.bash