-
Notifications
You must be signed in to change notification settings - Fork 387
Adding Installation Guide From Source Code #2676
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Cool stuff! Can this PR wait for #2645 by any chance? I promise I'll try to finish it as soon as possible! |
for sure, no hurries! |
|
In the mentioned PR fallback logic was introduced when trying to create a release build without a release keystore. The following warning will be shown when trying to do what I've described. You are trying to create a release build, but a key.properties file was not found.
Falling back to the "debug" signing config.
To sign a release build, a keystore properties file is required.
The following is an example configuration.
Create a file named `[project]/android/key.properties` that contains a reference to your keystore.
Don't include the angle brackets `(< >)`. They indicate that the text serves as a placeholder for your values.
```properties
storePassword=<keystore password>
keyPassword=<key password>
keyAlias=<key alias>
storeFile=<keystore file location>
```
For more info, see:
* https://docs.flutter.dev/deployment/android#sign-the-appShould some info about this be added to the guide? And yes, it's now possible to create optimized release builds from source, so the possibility itself of building for release should be added, right? |
I believed so, here is how the new sections are looking so far, I also added an key.properties.sample to use as a guide New SectionsRelease Builds & SigningWhen attempting to create a release build without a configured release keystore, the build system will display the following warning and fall back to using the debug signing configuration: Configuring a Release KeystoreTo properly sign a release build, create a file at:
The file should contain the following properties (do not include the angle brackets storePassword=<keystore password>
keyPassword=<key password>
keyAlias=<key alias>
storeFile=<keystore file location>Once this file is present, release builds will be signed using your provided keystore instead of the debug key. For more details on Android app signing with Flutter, see: |
|
I don't think we need this. Anyone familiar with Flutter (i.e. people likely to clone this repo) should already know how to use it, and for those who don't there are already many resources out there for Flutter/Docker/Android dev. |
Obtainium Installation Guide
This document explains how to build and run Obtainium using Docker and Flutter. It covers both the normal and F-Droid flavors.
Table of Contents
Prerequisites
Docker resource recommendations:
Docker Setup
From the root of the project, build the Docker image and enter the container:
./docker/mkbuilder.sh && ./docker/builder.sh ./build.shThis sets up a reproducible environment with all necessary dependencies (Flutter, Android SDK, NDK, Build Tools, etc.).
Running on Device or Emulator
Normal flavor
F-Droid flavor
Building APKs
Build normal flavor
Build F-Droid flavor
APK Locations
After building, the APKs can be found here:
build/app/outputs/flutter-apk/app-normal-debug.apkbuild/app/outputs/flutter-apk/app-fdroid-debug.apkYou can install them manually using:
Tips & Recommendations
flutter cleanif you switch between flavors to avoid caching issues:--flavorwhen building or running to match the intended APK variant.This document is intended to provide clear, reproducible instructions for both contributors and users building Obtainium from source.