Fallback to debug signing config (#312)

This commit is contained in:
Marcin Wojnarowski 2022-01-07 08:10:32 +01:00 committed by GitHub
parent 8712691926
commit 413059c9cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 8 deletions

View File

@ -36,9 +36,9 @@ A mobile client for [Lemmy](https://github.com/LemmyNet/lemmy) - a federated red
### Android
1. Build: `flutter build apk`
1. Build: `flutter build apk --flavor prod --target lib/main_prod.dart --release`
The apk will be in `build/app/outputs/flutter-apk/app-release.apk`
The apk will be in `build/app/outputs/flutter-apk/app-prod-release.apk`
### Linux
@ -47,9 +47,9 @@ The apk will be in `build/app/outputs/flutter-apk/app-release.apk`
```sh
flutter config --enable-linux-desktop
```
3. Build: `flutter build linux`
3. Build: `flutter build linux --target lib/main_prod.dart --release`
The executable will be in `build/linux/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)
### Windows
@ -58,7 +58,7 @@ The executable will be in `build/linux/release/bundle/lemmur` (be aware, however
```sh
flutter config --enable-windows-desktop
```
3. Build: `flutter build windows`
3. Build: `flutter build windows --target lib/main_prod.dart --release`
The executable will be in `build\windows\runner\Release\lemmur.exe` (be aware, however, that this executable is not standalone)

View File

@ -54,8 +54,6 @@ android {
}
signingConfigs {
dev { }
if (System.getenv("ANDROID_STORE_PATH")) {
prod {
keyAlias System.getenv("ANDROID_KEY_ALIAS")
@ -64,7 +62,12 @@ android {
storePassword System.getenv("ANDROID_STORE_PASSWORD")
}
} else {
prod { }
prod {
keyAlias signingConfigs.debug.keyAlias
keyPassword signingConfigs.debug.keyPassword
storeFile signingConfigs.debug.storeFile
storePassword signingConfigs.debug.storePassword
}
}
}