Added AppImage build script for PyBitmessage #1769
43
docs/AppImage_Build.md
Normal file
|
@ -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.
|
4
packages/AppImage/AppRun
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/sh
|
||||
|
||||
SELF_DIR="$(dirname "$(readlink -f "$0")")"
|
||||
python "$SELF_DIR"/usr/lib/python2.7/dist-packages/pybitmessage/bitmessagemain.py "$@"
|
30
packages/AppImage/build.sh
Executable file
|
@ -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"
|
4
packages/AppImage/install.sh
Executable file
|
@ -0,0 +1,4 @@
|
|||
|
||||
#!/bin/sh
|
||||
this requires root this requires root
Yes, is that a problem?. If yes, I can change so it won't require root. Yes, is that a problem?. If yes, I can change so it won't require root.
I'm not sure. Let's check: https://github.com/g1itch/PyBitmessage/commits/ci-wine-further I'm not sure. Let's check: https://github.com/g1itch/PyBitmessage/commits/ci-wine-further
It should work without root: a67ad09 It should work without root: a67ad09
OKay, I'll make the changes. OKay, I'll make the changes.
|
||||
|
||||
this requires root this requires root
Yes, is that a problem?. If yes, I can change so it won't require root. Yes, is that a problem?. If yes, I can change so it won't require root.
I'm not sure. Let's check: https://github.com/g1itch/PyBitmessage/commits/ci-wine-further I'm not sure. Let's check: https://github.com/g1itch/PyBitmessage/commits/ci-wine-further
It should work without root: a67ad09 It should work without root: a67ad09
OKay, I'll make the changes. OKay, I'll make the changes.
|
||||
wget -O "appimagetool" "https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage"
|
||||
this requires root this requires root
Yes, is that a problem?. If yes, I can change so it won't require root. Yes, is that a problem?. If yes, I can change so it won't require root.
I'm not sure. Let's check: https://github.com/g1itch/PyBitmessage/commits/ci-wine-further I'm not sure. Let's check: https://github.com/g1itch/PyBitmessage/commits/ci-wine-further
It should work without root: a67ad09 It should work without root: a67ad09
OKay, I'll make the changes. OKay, I'll make the changes.
|
||||
chmod a+x appimagetool
|
||||
this requires root this requires root
Yes, is that a problem?. If yes, I can change so it won't require root. Yes, is that a problem?. If yes, I can change so it won't require root.
I'm not sure. Let's check: https://github.com/g1itch/PyBitmessage/commits/ci-wine-further I'm not sure. Let's check: https://github.com/g1itch/PyBitmessage/commits/ci-wine-further
It should work without root: a67ad09 It should work without root: a67ad09
OKay, I'll make the changes. OKay, I'll make the changes.
|
this requires root
this requires root
Yes, is that a problem?. If yes, I can change so it won't require root.
Yes, is that a problem?. If yes, I can change so it won't require root.
I'm not sure. Let's check: https://github.com/g1itch/PyBitmessage/commits/ci-wine-further
I'm not sure. Let's check: https://github.com/g1itch/PyBitmessage/commits/ci-wine-further
It should work without root: a67ad09
It should work without root: a67ad09
OKay, I'll make the changes.
OKay, I'll make the changes.