Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from belovachap/chapman/appimage
An AppImage maker of sorts.
- Loading branch information
Showing
9 changed files
with
107 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
FROM ubuntu:16.04 | ||
|
||
RUN apt-get update; apt-get upgrade -y | ||
RUN apt-get install -y autoconf \ | ||
build-essential \ | ||
fuse \ | ||
gettext \ | ||
libboost-all-dev \ | ||
libminiupnpc-dev \ | ||
libssl-dev \ | ||
pkg-config \ | ||
qtbase5-dev \ | ||
qttools5-dev-tools | ||
|
||
WORKDIR /opt/appimage | ||
VOLUME /opt/appimage/build | ||
COPY resources resources | ||
|
||
CMD resources/build.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
all: | ||
make clean | ||
make resources-appimage-tools | ||
make resources-peercoin-source-code | ||
make docker-image | ||
make build-appimage | ||
|
||
clean: | ||
rm -rf build/* | ||
cd resources/; rm -rf peercoin/ AppDir/ *.AppImage | ||
|
||
resources-appimage-tools: | ||
cd resources/; wget https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage | ||
cd resources/; chmod +x linuxdeploy-x86_64.AppImage | ||
cd resources/; wget https://github.com/linuxdeploy/linuxdeploy-plugin-qt/releases/download/continuous/linuxdeploy-plugin-qt-x86_64.AppImage | ||
cd resources/; chmod +x linuxdeploy-plugin-qt-x86_64.AppImage | ||
|
||
resources-peercoin-source-code: | ||
cd resources/; git clone https://github.com/peercoin/peercoin | ||
ifdef TAG | ||
cd resources/peercoin/; git checkout $(TAG) | ||
endif | ||
|
||
docker-image: | ||
docker build -t peercoin/appimage . | ||
|
||
build-appimage: | ||
docker run --privileged -v `pwd`/build:/opt/appimage/build --rm peercoin/appimage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# AppImage | ||
|
||
[AppImage](https://appimage.org/) is a format for packaging Linux applications as self-contained binaries that can be easily run on many distributions. | ||
|
||
## Building the AppImage | ||
|
||
For master: | ||
``` | ||
make | ||
``` | ||
|
||
For a tag: | ||
``` | ||
make TAG=v0.7.1ppc | ||
``` | ||
|
||
`Peercoin-x86_64.AppImage` is deposited in the `/build` directory. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Peercoin-x86_64.AppImage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
peercoin/ | ||
linuxdeploy-x86_64.AppImage | ||
linuxdeploy-plugin-qt-x86_64.AppImage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Build AppImage | ||
cd /opt/appimage/resources | ||
|
||
export QT_SELECT=qt5 | ||
./linuxdeploy-x86_64.AppImage --appdir AppDir \ | ||
-e peercoin/src/qt/peercoin-qt \ | ||
-d peercoin-qt.desktop \ | ||
-i peercoin/share/pixmaps/peercoin128.png \ | ||
--plugin qt \ | ||
--output appimage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Build Peercoin-Qt | ||
cd /opt/appimage/resources/peercoin/ | ||
|
||
./contrib/install_db4.sh `pwd` | ||
ln -sf `pwd`/db4/include /usr/local/include/bdb4.8 | ||
ln -sf `pwd`/db4/lib/*.a /usr/local/lib | ||
|
||
./autogen.sh | ||
./configure --with-gui=qt5 | ||
make -j$(nproc) | ||
make check |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Build | ||
cd /opt/appimage/resources | ||
|
||
./build-peercoin-qt.sh | ||
./build-appimage.sh | ||
cp Peercoin-x86_64.AppImage /opt/appimage/build/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[Desktop Entry] | ||
Encoding=UTF-8 | ||
Name=Peercoin | ||
Comment=Desktop wallet for Peercoin Cryptocurrency | ||
Comment[de]=Offizieller Client für die Kryptowährung Peercoin | ||
Exec=peercoin-qt %u | ||
Terminal=false | ||
Type=Application | ||
Icon=peercoin128 | ||
MimeType=x-scheme-handler/peercoin; | ||
Categories=Office;Finance; | ||
StartupWMClass=Peercoin-qt |