diff --git a/docs/AppImage_Build.md b/docs/AppImage_Build.md new file mode 100644 index 00000000..96ac21ca --- /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. +``` +sudo ./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..88ab5df6 --- /dev/null +++ b/packages/AppImage/AppRun @@ -0,0 +1,5 @@ +#!/bin/sh + +SELF_DIR="$(dirname "$(readlink -f "$0")")" +cd "$SELF_DIR/usr/bin/" +exec "pybitmessage" \ No newline at end of file diff --git a/packages/AppImage/PyBitmessage-x86_64.AppImage b/packages/AppImage/PyBitmessage-x86_64.AppImage new file mode 100755 index 00000000..87833bd2 Binary files /dev/null and b/packages/AppImage/PyBitmessage-x86_64.AppImage differ 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..760195a0 --- /dev/null +++ b/packages/AppImage/install.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +wget -O "appimagetool" "https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage" +chmod a+x appimagetool +mv appimagetool /usr/bin/