From 971c79b3f53dfb57fa4ebc57e61a8f0be6c4de07 Mon Sep 17 00:00:00 2001 From: shekhar-cis Date: Tue, 14 Dec 2021 20:57:59 +0530 Subject: [PATCH] Added dynamic version of appimage build --- packages/docker/Dockerfile.bionic | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/packages/docker/Dockerfile.bionic b/packages/docker/Dockerfile.bionic index 0053bd72..d243c11c 100644 --- a/packages/docker/Dockerfile.bionic +++ b/packages/docker/Dockerfile.bionic @@ -20,13 +20,14 @@ RUN apt-get -y install sudo RUN apt-get install -yq --no-install-suggests --no-install-recommends \ # travis xenial bionic - python-setuptools libssl-dev libpq-dev python-prctl \ + python-setuptools libssl-dev python-prctl \ python-dev python-virtualenv python-pip virtualenv \ # dpkg python-minimal python-all python openssl libssl-dev \ dh-apparmor debhelper dh-python python-msgpack python-qt4 git python-stdeb \ python-all-dev python-crypto python-psutil \ fakeroot python-pytest python3-wheel \ + libglib2.0-dev \ # Code quality pylint python-pycodestyle python3-pycodestyle pycodestyle python-flake8 \ python3-flake8 flake8 python-pyflakes python3-pyflakes pyflakes pyflakes3 \ @@ -94,11 +95,11 @@ COPY . /home/builder/src WORKDIR /home/builder/src -RUN python setup.py -V - -RUN python setup.py sdist -RUN python setup.py --command-packages=stdeb.command bdist_deb -RUN dpkg-deb -I deb_dist/pybitmessage_0.6.3.2-1_amd64.deb +RUN VERSION=$(python setup.py -V) \ + && python setup.py sdist \ + && python setup.py --command-packages=stdeb.command bdist_deb \ + && dpkg-deb -I deb_dist/pybitmessage_${VERSION}-1_amd64.deb 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