diff --git a/docs/AppImage_Build.md b/docs/AppImage_Build.md new file mode 100644 index 00000000..ce89244f --- /dev/null +++ b/docs/AppImage_Build.md @@ -0,0 +1,43 @@ +# PyBitmessage AppImage Build instructions + +## Requirements +First make sure you have `dpkg` and `appimagetool` installed. +From packages/AppImage/ Dir run `install.sh` to install the appimagetool. +``` +./install.sh +``` + +## Build and Install + +This script requires PyBitmessage .deb package. +Download the latest version from https://storage.bitmessage.org/binaries/ + +Once you have downloaded the package and have `dpkg` and `appimagetool` installed: + +You can start to build the appimage + +### Clone the source code +``` +git clone git://github.com/Bitmessage/PyBitmessage.git +``` +This will install the base app to your local flatpak user repository, it +takes a while to compile because QT4 and PyQt4 have to be build, among others. But this is only required once. + +### Build + +Run build.sh +Usage: ./build.sh "path to deb package" +Example ./build.sh ~/Downloads/pybitmessage_0.6.3.2-1_amd64.deb + +``` +cd PyBitmessage/packages/AppImage +./build.sh ~/Downloads/pybitmessage_0.6.3.2-1_amd64.deb +``` + +# Run +``` +./PyBitmessage-x86_64.AppImage +``` + +## Cleanup +The script performs a cleanup, deletes the intermediate AppDir & tmp files. \ No newline at end of file diff --git a/packages/AppImage/AppRun b/packages/AppImage/AppRun new file mode 100755 index 00000000..509f8992 --- /dev/null +++ b/packages/AppImage/AppRun @@ -0,0 +1,4 @@ +#!/bin/sh + +SELF_DIR="$(dirname "$(readlink -f "$0")")" +python "$SELF_DIR"/usr/lib/python2.7/dist-packages/pybitmessage/bitmessagemain.py "$@" \ No newline at end of file diff --git a/packages/AppImage/build.sh b/packages/AppImage/build.sh new file mode 100755 index 00000000..f4290664 --- /dev/null +++ b/packages/AppImage/build.sh @@ -0,0 +1,30 @@ +#!/bin/sh + +##################################################################### +# Usage: ./build.sh "path to deb package" +# Example ./build.sh ~/Downloads/pybitmessage_0.6.3.2-1_amd64.deb +##################################################################### + +#CleanUp Old Builds +rm -rf AppDir/ +rm -rf tmp/ + +mkdir AppDir +mkdir tmp + +echo 'Building from inputFile:' $1 + +dpkg -x $1 tmp/ + +mv tmp/usr/ AppDir/usr/ +cp AppRun AppDir/ +cp AppDir/usr/share/applications/pybitmessage.desktop AppDir/ +cp AppDir/usr/share/icons/hicolor/24x24/apps/pybitmessage.png AppDir/ +ARCH=x86_64 appimagetool AppDir/ + +##Clean-up +rm -rf AppDir/ +rm -rf tmp/ + +echo "Build Successful" +echo "Run ./PyBitmessage-x86_64.AppImage" \ No newline at end of file diff --git a/packages/AppImage/install.sh b/packages/AppImage/install.sh new file mode 100755 index 00000000..031f6bc4 --- /dev/null +++ b/packages/AppImage/install.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +wget -O "appimagetool" "https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage" +chmod a+x appimagetool