added build instructions
This commit is contained in:
parent
9416465f36
commit
526450c4d6
34
README.md
34
README.md
|
@ -5,15 +5,35 @@
|
|||
|
||||
A lemmy mobile client
|
||||
|
||||
- [lemmur](#lemmur)
|
||||
- [Build from source](#build-from-source)
|
||||
- [Prerequisites](#prerequisites)
|
||||
- [Android](#android)
|
||||
- [Linux](#linux)
|
||||
|
||||
## How to build
|
||||
## Build from source
|
||||
|
||||
Requirements: [flutter](https://flutter.dev/docs/get-started/install) installed and added to path
|
||||
### Prerequisites
|
||||
|
||||
- Install [flutter](https://flutter.dev/docs/get-started/install): To check if this step was successful run `flutter doctor` (Installing android studio is not required if you setup the android SDK yourself)
|
||||
- Clone this repo: `git clone https://github.com/krawieck/lemmur`
|
||||
- Enter the repo: `cd lemmur`
|
||||
|
||||
### Android
|
||||
|
||||
1. Build: `flutter build apk`
|
||||
|
||||
The apk will be in `build/app/outputs/flutter-apk/app-release.apk`
|
||||
|
||||
### Linux
|
||||
|
||||
1. Make sure you have the additional [linux requirements](https://flutter.dev/desktop#additional-linux-requirements)
|
||||
2. Switch to dev channel of flutter:
|
||||
```sh
|
||||
flutter channel dev
|
||||
flutter upgrade
|
||||
flutter config --enable-linux-desktop
|
||||
```
|
||||
git clone https://github.com/krawieck/lemmur
|
||||
cd lemmur
|
||||
flutter build apk
|
||||
```
|
||||
3. Build: `flutter build linux`
|
||||
|
||||
the apk will be in `lemmur/build/app/outputs/flutter-apk/app-release.apk`
|
||||
The executable will be in `build/linux/release/bundle/lemmur` (be aware, however, that this executable is not standalone)
|
||||
|
|
Loading…
Reference in New Issue