Make versioned compressed packages for releases
This commit is contained in:
parent
b5d74ec24c
commit
a86323d419
@ -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"
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user