Skip to content

simplify signing key handling - #18027

Open
FourTOne5 wants to merge 1 commit into
keiyoushi:mainfrom
FourTOne5:sign
Open

simplify signing key handling#18027
FourTOne5 wants to merge 1 commit into
keiyoushi:mainfrom
FourTOne5:sign

Conversation

@FourTOne5

Copy link
Copy Markdown
Contributor

Based on:
mihonapp/mihon@6552ffe mihonapp/mihon@50d0e8a

Checklist:

  • Updated versionCode value in build.gradle.kts
  • Updated baseVersionCode in build.gradle.kts (if updated multisrc theme code)
  • Referenced all related issues in the PR body (e.g. "Closes #xyz")
  • Set the contentWarning configuration in build.gradle.kts appropriately
  • Have not changed source names
  • Have explicitly kept the id if a source's name or language were changed
  • Have tested the modifications by compiling and running the extension through Android Studio
  • Have removed web_hi_res_512.png when adding a new extension
  • This PR is AI-assisted, I have reviewed the changes manually and confirmed they are not slop

storePassword = providers.environmentVariable("KEY_STORE_PASSWORD").orNull
keyAlias = providers.environmentVariable("ALIAS").orNull
keyPassword = providers.environmentVariable("KEY_PASSWORD").orNull
if (System.getenv("KEI_CI").toBoolean()) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use providers.environmentVariable ?

keyAlias = providers.environmentVariable("ALIAS").orNull
keyPassword = providers.environmentVariable("KEY_PASSWORD").orNull
if (System.getenv("KEI_CI").toBoolean()) {
val tempStoreFile = file(System.getenv("RUNNER_TEMP")).resolve("signingkey.jks")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this makes it so local development can't make release build with custom key without either changing this code or setting this env variable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants