From b682f35fa5a103b25420f85a06f6ac145c367093 Mon Sep 17 00:00:00 2001 From: Alexander Sashnov Date: Sat, 20 Nov 2021 22:13:51 +0700 Subject: [PATCH] README: add 'Building an AppImage on Linux' --- README.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/README.md b/README.md index c865c39..f482a6b 100644 --- a/README.md +++ b/README.md @@ -167,6 +167,35 @@ Kiwix-build.py will create several directories: If you want to install all those directories elsewhere, you can pass the `--working-dir` option to `kiwix-build`: + +Building an AppImage on Linux +----------------------------- +Compile locally kiwix-desktop on native_dyn platform, then run the script create_kiwix-desktop_appImage.sh + +
+ Exact commands for Fedora 34x64 + +``` +Here are the exact commands (tested on clean Fedora 34x64): + +sudo dnf install virtualenv ninja-build meson patch qmake-qt5 patchelf +cd ~ +wget https://github.com/kiwix/kiwix-build/archive/refs/heads/master.zip +unzip master.zip +cd kiwix-build-master +virtualenv -p python3 ./ +source bin/activate +pip install . +hash -r +export SKIP_BIG_MEMORY_TEST=1 +kiwix-build --target-platform native_dyn kiwix-desktop +./scripts/create_kiwix-desktop_appImage.sh + +The result: ~/kiwix-build-master/Kiwix--x86_64.AppImage +``` + +
+ Troubleshooting ---------------