Build instructions for flatpak
This commit is contained in:
parent
c002632e15
commit
16a8e608ea
13
README.md
13
README.md
|
@ -22,6 +22,7 @@ A mobile client for [Lemmy](https://github.com/LemmyNet/lemmy) - a federated red
|
||||||
- [Prerequisites](#prerequisites)
|
- [Prerequisites](#prerequisites)
|
||||||
- [Android](#android)
|
- [Android](#android)
|
||||||
- [Linux](#linux)
|
- [Linux](#linux)
|
||||||
|
- [Flatpak](#flatpak)
|
||||||
- [Windows](#windows)
|
- [Windows](#windows)
|
||||||
- [FAQ](#faq)
|
- [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)
|
- [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)
|
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
|
### Windows
|
||||||
|
|
||||||
1. Make sure you have the additional [windows requirements](https://flutter.dev/desktop#additional-windows-requirements) (verify with `flutter doctor`)
|
1. Make sure you have the additional [windows requirements](https://flutter.dev/desktop#additional-windows-requirements) (verify with `flutter doctor`)
|
||||||
|
|
Loading…
Reference in New Issue