diff --git a/contrib/build.Dockerfile b/contrib/build.Dockerfile index d588ed1..e15839a 100644 --- a/contrib/build.Dockerfile +++ b/contrib/build.Dockerfile @@ -25,7 +25,9 @@ RUN apt-get install -y \ liblzma-dev \ libusb-1.0-0-dev \ libudev-dev \ - faketime + faketime \ + zip \ + dos2unix RUN curl https://pyenv.run | bash ENV PATH="/root/.pyenv/bin:$PATH" diff --git a/contrib/build_bin.sh b/contrib/build_bin.sh index 151f5b9..e7b550a 100755 --- a/contrib/build_bin.sh +++ b/contrib/build_bin.sh @@ -24,3 +24,13 @@ TZ=UTC find ${lib_dir} -name '*.py' -type f -execdir touch -t "201901010000.00" export PYTHONHASHSEED=42 poetry run pyinstaller hwi.spec unset PYTHONHASHSEED + +# Make the final compressed package +pushd dist +VERSION=`poetry run hwi --version | cut -d " " -f 2` +OS=`uname | tr '[:upper:]' '[:lower:]'` +if [[ $OS == "darwin" ]]; then + OS="mac" +fi +tar -czf "hwi-${VERSION}-${OS}-amd64.tar.gz" hwi +popd diff --git a/contrib/build_wine.sh b/contrib/build_wine.sh index 6475858..b7d6e4d 100755 --- a/contrib/build_wine.sh +++ b/contrib/build_wine.sh @@ -68,3 +68,9 @@ $POETRY install -E windist export PYTHONHASHSEED=42 $POETRY run pyinstaller hwi.spec unset PYTHONHASHSEED + +# Make the final compressed package +pushd dist +VERSION=`$POETRY run hwi --version | cut -d " " -f 2 | dos2unix` +zip "hwi-${VERSION}-windows-amd64.zip" hwi.exe +popd