Skip to content

Commit

Permalink
build.gradle.kts 里 project.file 改回 File 实现。
Browse files Browse the repository at this point in the history
  • Loading branch information
YenalyLiew committed Mar 25, 2024
1 parent 565a621 commit 91ffc04
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ android {

// 先 Github Secrets 再读取环境变量,若没有则读取本地文件
val signPwd = System.getenv("HA1_KEYSTORE_PASSWORD")
?: project.file("/keystore/ha1_keystore_password.txt").readText()
?: File(projectDir, "keystore/ha1_keystore_password.txt").readText()

val githubToken =
System.getenv("HA1_GITHUB_TOKEN") ?: project.file("/ha1_github_token.txt").readText()
System.getenv("HA1_GITHUB_TOKEN") ?: File(projectDir, "ha1_github_token.txt").readText()

val signConfig = signingConfigs.create("release") {
storeFile = project.file("/keystore/Han1meViewerKeystore.jks")
storeFile = File(projectDir, "keystore/Han1meViewerKeystore.jks")
storePassword = signPwd
keyAlias = "yenaly"
keyPassword = signPwd
Expand Down

0 comments on commit 91ffc04

Please sign in to comment.