mirror of
https://github.com/SlimeVR/SlimeVR-Server.git
synced 2026-04-06 02:01:58 +02:00
Early fail for keystore issues
This commit is contained in:
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user