Make versioned compressed packages for releases

This commit is contained in:
Andrew Chow 2019-04-19 23:29:34 -04:00
parent b5d74ec24c
commit a86323d419
3 changed files with 19 additions and 1 deletions

View File

@ -25,7 +25,9 @@ RUN apt-get install -y \
liblzma-dev \ liblzma-dev \
libusb-1.0-0-dev \ libusb-1.0-0-dev \
libudev-dev \ libudev-dev \
faketime faketime \
zip \
dos2unix
RUN curl https://pyenv.run | bash RUN curl https://pyenv.run | bash
ENV PATH="/root/.pyenv/bin:$PATH" ENV PATH="/root/.pyenv/bin:$PATH"

View File

@ -24,3 +24,13 @@ TZ=UTC find ${lib_dir} -name '*.py' -type f -execdir touch -t "201901010000.00"
export PYTHONHASHSEED=42 export PYTHONHASHSEED=42
poetry run pyinstaller hwi.spec poetry run pyinstaller hwi.spec
unset PYTHONHASHSEED 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

View File

@ -68,3 +68,9 @@ $POETRY install -E windist
export PYTHONHASHSEED=42 export PYTHONHASHSEED=42
$POETRY run pyinstaller hwi.spec $POETRY run pyinstaller hwi.spec
unset PYTHONHASHSEED 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