From bfad6cf69d17ea6c8302de0fd5e98084b37e2eea Mon Sep 17 00:00:00 2001 From: Dmitri Bogomolov <4glitch@gmail.com> Date: Fri, 4 Jun 2021 22:43:13 +0300 Subject: [PATCH] AppImage build script (fixes: #1450) --- buildscripts/appimage.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 buildscripts/appimage.sh diff --git a/buildscripts/appimage.sh b/buildscripts/appimage.sh new file mode 100755 index 00000000..a5294097 --- /dev/null +++ b/buildscripts/appimage.sh @@ -0,0 +1,20 @@ +#!/bin/sh + +# Cleanup +rm -rf PyBitmessage +export VERSION=$(python setup.py --version) + +[ -f "pkg2appimage" ] || wget -O "pkg2appimage" https://github.com/AppImage/pkg2appimage/releases/download/continuous/pkg2appimage-1807-x86_64.AppImage +chmod a+x pkg2appimage + +echo "Building AppImage" + +./pkg2appimage packages/AppImage/PyBitmessage.yml + + +if [ -f "out/PyBitmessage-${VERSION}.glibc2.15-x86_64.AppImage" ]; then + echo "Build Successful"; + echo "Run out/PyBitmessage-${VERSION}.glibc2.15-x86_64.AppImage" +else + echo "Build Failed" +fi