Skip to content
This repository has been archived by the owner on Feb 17, 2024. It is now read-only.

Commit

Permalink
chore(CI): 无签名时使用 debug 签名
Browse files Browse the repository at this point in the history
  • Loading branch information
HuanCheng65 committed Feb 2, 2024
1 parent 66fa59a commit 1642c4a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ jobs:
if: ${{ github.event_name != 'pull_request' || github.ref_type == 'tag' }}
run: |
if [ -n "${{ secrets.RELEASEKEYPASSWORD }}" ]; then
echo releaseKeyAlias="${{ vars.RELEASE_KEY_ALIAS }}" >> keystore.properties
echo releaseKeyPassword="${{ secrets.RELEASEKEYPASSWORD }}" >> keystore.properties
echo releaseKeyStore="${{ vars.RELEASE_KEYSTORE }}" >> keystore.properties
echo releaseStorePassword="${{ secrets.RELEASESTOREPASSWORD }}" >> keystore.properties
echo keystore.file="${{ vars.RELEASE_KEYSTORE }}" >> keystore.properties
echo keystore.password="${{ secrets.RELEASESTOREPASSWORD }}" >> keystore.properties
echo keystore.key.alias="${{ vars.RELEASE_KEY_ALIAS }}" >> keystore.properties
echo keystore.key.password="${{ secrets.RELEASEKEYPASSWORD }}" >> keystore.properties
fi
- name: Setup Gradle
Expand Down
10 changes: 5 additions & 5 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@ android {
compose = true
}
signingConfigs {
if (property.releaseKeyStore.isNotEmpty()) {
if (property.keystore.file.isNotBlank()) {
val config by creating {
keyAlias = property.releaseKeyAlias
keyPassword = property.releaseKeyPassword
storeFile = file(File(rootDir, property.releaseKeyStore))
storePassword = property.releaseStorePassword
storeFile = file(File(rootDir, property.keystore.file))
storePassword = property.keystore.password
keyAlias = property.keystore.key.alias
keyPassword = property.keystore.key.password
enableV3Signing = true
enableV4Signing = true
}
Expand Down
2 changes: 1 addition & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ sweetProperty {
isAddDefault = true
)
permanentKeyValues(
"releaseKeyStore" to ""
"keystore.file" to ""
)
generateFrom(CURRENT_PROJECT, ROOT_PROJECT)
}
Expand Down

0 comments on commit 1642c4a

Please sign in to comment.