瀏覽代碼

[Android] Check if keyStore path is empty

In `godot-build-scripts`, the default `config.sh` sets `GODOT_ANDROID_SIGN_KEYSTORE` to an empty string but we were only checking if it's null.
Raul Santos 1 年之前
父節點
當前提交
efe5f988e0
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      platform/android/java/editor/build.gradle

+ 1 - 1
platform/android/java/editor/build.gradle

@@ -36,7 +36,7 @@ ext {
     // Return the keystore file used for signing the release build.
     getGodotKeystoreFile = { ->
         def keyStore = System.getenv("GODOT_ANDROID_SIGN_KEYSTORE")
-        if (keyStore == null) {
+        if (keyStore == null || keyStore.isEmpty()) {
             return null
         }
         return file(keyStore)