Added dynamic version of appimage build

This commit is contained in:
shekhar-cis 2021-12-14 20:57:59 +05:30
parent 5bc92987c0
commit 971c79b3f5
Signed by untrusted user: shekhar-cis
GPG Key ID: 8B2A6C8D5F7F1635

View File

@ -20,13 +20,14 @@ RUN apt-get -y install sudo
RUN apt-get install -yq --no-install-suggests --no-install-recommends \ RUN apt-get install -yq --no-install-suggests --no-install-recommends \
# travis xenial bionic # travis xenial bionic
python-setuptools libssl-dev libpq-dev python-prctl \ python-setuptools libssl-dev python-prctl \
python-dev python-virtualenv python-pip virtualenv \ python-dev python-virtualenv python-pip virtualenv \
# dpkg # dpkg
python-minimal python-all python openssl libssl-dev \ python-minimal python-all python openssl libssl-dev \
dh-apparmor debhelper dh-python python-msgpack python-qt4 git python-stdeb \ dh-apparmor debhelper dh-python python-msgpack python-qt4 git python-stdeb \
python-all-dev python-crypto python-psutil \ python-all-dev python-crypto python-psutil \
fakeroot python-pytest python3-wheel \ fakeroot python-pytest python3-wheel \
libglib2.0-dev \
# Code quality # Code quality
pylint python-pycodestyle python3-pycodestyle pycodestyle python-flake8 \ pylint python-pycodestyle python3-pycodestyle pycodestyle python-flake8 \
python3-flake8 flake8 python-pyflakes python3-pyflakes pyflakes pyflakes3 \ python3-flake8 flake8 python-pyflakes python3-pyflakes pyflakes pyflakes3 \
@ -94,11 +95,11 @@ COPY . /home/builder/src
WORKDIR /home/builder/src WORKDIR /home/builder/src
RUN python setup.py -V RUN VERSION=$(python setup.py -V) \
&& python setup.py sdist \
RUN python setup.py sdist && python setup.py --command-packages=stdeb.command bdist_deb \
RUN python setup.py --command-packages=stdeb.command bdist_deb && dpkg-deb -I deb_dist/pybitmessage_${VERSION}-1_amd64.deb
RUN dpkg-deb -I deb_dist/pybitmessage_0.6.3.2-1_amd64.deb
RUN buildscripts/appimage.sh RUN buildscripts/appimage.sh
RUN out/PyBitmessage-0.6.3.2.glibc2.15-x86_64.AppImage --appimage-extract-and-run -t RUN VERSION=$(python setup.py -V) \
&& out/PyBitmessage-${VERSION}.glibc2.15-x86_64.AppImage --appimage-extract-and-run -t