Added AppImage build script for PyBitmessage #1769

Closed
kdcis wants to merge 3 commits from v0.6-appimage into v0.6
4 changed files with 81 additions and 0 deletions

43
docs/AppImage_Build.md Normal file
View 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
View 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
View 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
View File

@ -0,0 +1,4 @@
g1itch commented 2021-05-31 18:33:34 +02:00 (Migrated from github.com)
Review

this requires root

this requires root
g1itch commented 2021-05-31 18:33:34 +02:00 (Migrated from github.com)
Review

this requires root

this requires root
kdcis commented 2021-05-31 18:50:27 +02:00 (Migrated from github.com)
Review

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.
kdcis commented 2021-05-31 18:50:27 +02:00 (Migrated from github.com)
Review

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.
g1itch commented 2021-05-31 18:59:00 +02:00 (Migrated from github.com)
Review
I'm not sure. Let's check: https://github.com/g1itch/PyBitmessage/commits/ci-wine-further
g1itch commented 2021-05-31 18:59:00 +02:00 (Migrated from github.com)
Review
I'm not sure. Let's check: https://github.com/g1itch/PyBitmessage/commits/ci-wine-further
g1itch commented 2021-05-31 21:35:00 +02:00 (Migrated from github.com)
Review

It should work without root: a67ad09

It should work without root: a67ad09
g1itch commented 2021-05-31 21:35:00 +02:00 (Migrated from github.com)
Review

It should work without root: a67ad09

It should work without root: a67ad09
kdcis commented 2021-06-01 08:36:25 +02:00 (Migrated from github.com)
Review

OKay, I'll make the changes.

OKay, I'll make the changes.
kdcis commented 2021-06-01 08:36:25 +02:00 (Migrated from github.com)
Review

OKay, I'll make the changes.

OKay, I'll make the changes.
#!/bin/sh
g1itch commented 2021-05-31 18:33:34 +02:00 (Migrated from github.com)
Review

this requires root

this requires root
kdcis commented 2021-05-31 18:50:27 +02:00 (Migrated from github.com)
Review

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.
g1itch commented 2021-05-31 18:59:00 +02:00 (Migrated from github.com)
Review
I'm not sure. Let's check: https://github.com/g1itch/PyBitmessage/commits/ci-wine-further
g1itch commented 2021-05-31 21:35:00 +02:00 (Migrated from github.com)
Review

It should work without root: a67ad09

It should work without root: a67ad09
kdcis commented 2021-06-01 08:36:25 +02:00 (Migrated from github.com)
Review

OKay, I'll make the changes.

OKay, I'll make the changes.
g1itch commented 2021-05-31 18:33:34 +02:00 (Migrated from github.com)
Review

this requires root

this requires root
kdcis commented 2021-05-31 18:50:27 +02:00 (Migrated from github.com)
Review

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.
g1itch commented 2021-05-31 18:59:00 +02:00 (Migrated from github.com)
Review
I'm not sure. Let's check: https://github.com/g1itch/PyBitmessage/commits/ci-wine-further
g1itch commented 2021-05-31 21:35:00 +02:00 (Migrated from github.com)
Review

It should work without root: a67ad09

It should work without root: a67ad09
kdcis commented 2021-06-01 08:36:25 +02:00 (Migrated from github.com)
Review

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"
g1itch commented 2021-05-31 18:33:34 +02:00 (Migrated from github.com)
Review

this requires root

this requires root
kdcis commented 2021-05-31 18:50:27 +02:00 (Migrated from github.com)
Review

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.
g1itch commented 2021-05-31 18:59:00 +02:00 (Migrated from github.com)
Review
I'm not sure. Let's check: https://github.com/g1itch/PyBitmessage/commits/ci-wine-further
g1itch commented 2021-05-31 21:35:00 +02:00 (Migrated from github.com)
Review

It should work without root: a67ad09

It should work without root: a67ad09
kdcis commented 2021-06-01 08:36:25 +02:00 (Migrated from github.com)
Review

OKay, I'll make the changes.

OKay, I'll make the changes.
chmod a+x appimagetool
g1itch commented 2021-05-31 18:33:34 +02:00 (Migrated from github.com)
Review

this requires root

this requires root
kdcis commented 2021-05-31 18:50:27 +02:00 (Migrated from github.com)
Review

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.
g1itch commented 2021-05-31 18:59:00 +02:00 (Migrated from github.com)
Review
I'm not sure. Let's check: https://github.com/g1itch/PyBitmessage/commits/ci-wine-further
g1itch commented 2021-05-31 21:35:00 +02:00 (Migrated from github.com)
Review

It should work without root: a67ad09

It should work without root: a67ad09
kdcis commented 2021-06-01 08:36:25 +02:00 (Migrated from github.com)
Review

OKay, I'll make the changes.

OKay, I'll make the changes.