Don't fail for keystore

This commit is contained in:
Butterscotch! committed 2025-12-09 07:25:54 -05:00
1 parent 712fa6a1ad
commit 575778ab85
2 files changed
+8 -7

No files matched your search

+1 -1
View File
@@ -42,7 +42,7 @@ jobs:
run: ./gradlew spotlessCheck
- name: Test with Gradle
run: ./gradlew :server:core:test :server:desktop:test
run: ./gradlew test
build:
runs-on: ubuntu-latest
+7 -6
View File
@@ -37,17 +37,18 @@ tasks.register<Copy>("copyGuiAssets") {
throw GradleException("You need to run \"pnpm run build\" on the gui folder first!")
}
}
tasks.preBuild {
dependsOn(":server:android:copyGuiAssets")
// Validate release keystore
tasks.register("validateKeyStore") {
val storeFile = android.buildTypes.getByName("release").signingConfig?.storeFile
// Only warn for now since this is run even when irrelevant
if (storeFile?.isFile != true) {
throw GradleException("Android KeyStore file does not exist or is not a file: ${storeFile?.path}")
logger.error("Android KeyStore file does not exist or is not a file: ${storeFile?.path}")
} else if (storeFile.length() <= 0) {
throw GradleException("Android KeyStore file is empty: ${storeFile.path}")
logger.error("Android KeyStore file is empty: ${storeFile.path}")
}
}
tasks.preBuild {
dependsOn(":server:android:copyGuiAssets", ":server:android:validateKeyStore")
}
tasks.withType<KotlinCompile> {
compilerOptions {