Early fail for keystore issues

This commit is contained in:
Butterscotch! committed 2025-12-09 02:36:21 -05:00
1 parent bc26227443
commit 819481adcd
1 file changed
+8
+8
View File
@@ -39,6 +39,14 @@ tasks.register<Copy>("copyGuiAssets") {
}
tasks.preBuild {
dependsOn(":server:android:copyGuiAssets")
// Validate release keystore
val storeFile = android.buildTypes.getByName("release").signingConfig?.storeFile
if (storeFile?.isFile != true) {
throw GradleException("KeyStore file does not exist or is not a file: ${storeFile?.path}")
} else if (storeFile.length() <= 0) {
throw GradleException("KeyStore file is empty: ${storeFile.path}")
}
}
tasks.withType<KotlinCompile> {