Fixed "isOfficial" judgment (#2636)

This commit is contained in:
zkitefly 2024-01-10 17:50:59 +08:00 committed by GitHub
parent b69dadc80c
commit 16b0335fcf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,7 +25,7 @@ plugins {
} }
val isOfficial = System.getenv("HMCL_SIGNATURE_KEY") != null val isOfficial = System.getenv("HMCL_SIGNATURE_KEY") != null
|| (System.getenv("GITHUB_REPOSITORY_OWNER") == "huanghongxun" && System.getenv("GITHUB_BASE_REF") || (System.getenv("GITHUB_REPOSITORY_OWNER") == "HMCL-dev" && System.getenv("GITHUB_BASE_REF")
.isNullOrEmpty()) .isNullOrEmpty())
val buildNumber = System.getenv("BUILD_NUMBER")?.toInt().let { number -> val buildNumber = System.getenv("BUILD_NUMBER")?.toInt().let { number ->