Build instructions for flatpak

This commit is contained in:
Louis 2022-12-12 16:25:19 +01:00
parent c002632e15
commit 16a8e608ea
1 changed files with 13 additions and 0 deletions

View File

@ -22,6 +22,7 @@ A mobile client for [Lemmy](https://github.com/LemmyNet/lemmy) - a federated red
- [Prerequisites](#prerequisites)
- [Android](#android)
- [Linux](#linux)
- [Flatpak](#flatpak)
- [Windows](#windows)
- [FAQ](#faq)
- [Version x.x.x was released, why is it not yet on F-droid?](#version-xxx-was-released-why-is-it-not-yet-on-f-droid)
@ -48,6 +49,18 @@ The apk will be in `build/app/outputs/flutter-apk/app-prod-release.apk`
The executable will be in `build/linux/x64/release/bundle/lemmur` (be aware, however, that this executable is not standalone)
### Flatpak
Currently flutter does not support crosscompiling to Linux ARM64
1. Make sure you have the additional [linux requirements](https://flutter.dev/desktop#additional-linux-requirements) (verify with `flutter doctor`), and that you have setup [flathub](https://flatpak.org/setup/) with the flatpak dependencies (flatpak
flatpak-builder)
2. Building and installing:
```bash
flutter build linux --target lib/main_prod.dart --release
cd flatpak
tar -C ../build/linux/x64/release/bundle -cvf lemmur-linux-x86.tar.gz .
flatpak-builder --user --install --force-clean build-dir com.krawieck.lemmur.json
```
### Windows
1. Make sure you have the additional [windows requirements](https://flutter.dev/desktop#additional-windows-requirements) (verify with `flutter doctor`)