fix build

This commit is contained in:
55nknown 2022-11-20 23:03:50 +01:00
parent 89e67c369e
commit f38ff3b862
5 changed files with 5 additions and 21 deletions

View File

@ -26,13 +26,8 @@ apply plugin: 'kotlin-android'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
def keystoreProperties = new Properties() def keystoreProperties = new Properties()
def keystorePropertiesFile = rootProject.file("$System.env.ANDROID_SIGNING") def keystorePropertiesFile = rootProject.file("$System.env.HOME/keys/filc3.properties")
if (keystorePropertiesFile.exists()) {
keystoreProperties.load(new FileInputStream(keystorePropertiesFile)) keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
} else {
keystoreProperties.load(new FileInputStream(rootProject.file("signing/signing.properties")))
}
android { android {
compileSdkVersion rootProject.ext.compileSdkVersion compileSdkVersion rootProject.ext.compileSdkVersion

View File

@ -1,4 +0,0 @@
keyAlias=test
keyPassword=test123
storeFile=../signing/signing.keystore
storePassword=test123

View File

@ -9,12 +9,5 @@ function get_version
cat pubspec.yaml | grep version: | cut -d' ' -f2 | cut -d+ -f1 cat pubspec.yaml | grep version: | cut -d' ' -f2 | cut -d+ -f1
end end
set DEFAULT_KEY $HOME/keys/filc3.properties flutter build apk --release --dart-define=APPVER=(get_version) --no-tree-shake-icons && \
if test -e $DEFAULT_KEY
echo Using \"$DEFAULT_KEY\" for signing
set -x ANDROID_SIGNING $DEFAULT_KEY
end
flutter build apk --release --dart-define=APPVER=(get_version) --no-tree-shake-icons
cp -v "build/app/outputs/flutter-apk/app-release.apk" ~/"Desktop/hu.filc.naplo_"(get_version_bn).apk cp -v "build/app/outputs/flutter-apk/app-release.apk" ~/"Desktop/hu.filc.naplo_"(get_version_bn).apk

View File

@ -3,7 +3,7 @@ description: "Nem hivatalos e-napló alkalmazás az e-Kréta rendszerhez"
homepage: https://filcnaplo.hu homepage: https://filcnaplo.hu
publish_to: "none" publish_to: "none"
version: 3.4.0+170 version: 3.4.0+171
environment: environment:
sdk: ">=2.16.0-80.1.beta <3.0.0" sdk: ">=2.16.0-80.1.beta <3.0.0"