reorganizing release ouput to cleaner directory structure

This commit is contained in:
dan_s
2026-02-25 23:50:14 -06:00
parent 3cf6c37bf6
commit 10a1b27de1
5 changed files with 52 additions and 5 deletions

View File

@@ -11,22 +11,28 @@ make clean 2>/dev/null || true
rm -rf depends/built depends/x86_64-unknown-linux-gnu depends/work
make -C depends clean 2>/dev/null || true
# Limit parallelism to avoid OOM kills inside Docker.
# Each C++ compilation can use 1-2 GB RAM; cap at ~half of nproc.
JOBS=$(( $(nproc) / 2 ))
[ "$JOBS" -lt 1 ] && JOBS=1
# Build RandomX for Linux (clean, since host build is different arch/libc)
cd src/RandomX
rm -rf build-linux
mkdir -p build-linux && cd build-linux
cmake -DARCH=native ..
make -j$(nproc)
make -j"$JOBS"
cd /hush3
# Run the normal build
./util/build.sh --disable-tests -j$(nproc)
./util/build.sh --disable-tests -j"$JOBS"
# Package release
echo "Creating Linux release package..."
VERSION=$(grep -oP 'define\(_CLIENT_VERSION.*?,\s*\K[0-9]+' configure.ac | head -3 | tr '\n' '.' | sed 's/\.$//')
VERSION=${VERSION:-3.10.5}
RELEASE_DIR="release-linux"
UBUNTU_VERSION=$(grep -oP 'VERSION_ID="\K[^"]+' /etc/os-release 2>/dev/null || echo "unknown")
RELEASE_DIR="release/linux-${UBUNTU_VERSION}"
mkdir -p "$RELEASE_DIR"
strip -s src/hushd src/hush-cli src/hush-tx