1
0
mirror of https://codeberg.org/pstorch/F-Droid_Build_Status.git synced 2025-10-05 23:52:42 +02:00

add release script

This commit is contained in:
Peter Storch
2024-09-15 18:39:18 +02:00
parent 071894653f
commit 45eb8ea1a8
2 changed files with 14 additions and 0 deletions

View File

@@ -56,6 +56,14 @@ android {
keyPassword = System.getProperty("nightly_key_password")
}
}
register("release") {
if (System.getProperty("release_store_file") != null) {
storeFile = file(System.getProperty("release_store_file"))
storePassword = System.getProperty("release_store_password")
keyAlias = System.getProperty("release_key_alias")
keyPassword = System.getProperty("release_key_password")
}
}
}
buildTypes {
@@ -74,6 +82,9 @@ android {
"proguard-rules.pro"
)
}
getByName("release") {
signingConfig = signingConfigs.getByName("release")
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17

3
release.sh Executable file
View File

@@ -0,0 +1,3 @@
#!/bin/bash
./gradlew --no-configuration-cache clean assembleRelease -Drelease_store_file=/home/peter/fdroid-buildstatus.jks -Drelease_store_password="$1" -Drelease_key_alias='key0' -Drelease_key_password="$1"