Skip to content

Commit e325615

Browse files
committed
Fix Android APK signing (keystore format) in CI build job
1 parent 46d16da commit e325615

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

.github/workflows/build.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,16 @@ jobs:
169169
env:
170170
KEYSTORE_BASE64: ${{ secrets.ANDROID_KEYSTORE_BASE64 }}
171171
run: |
172-
echo "$KEYSTORE_BASE64" | base64 --decode > android/keystore.jks
172+
echo "$KEYSTORE_BASE64" | base64 --decode > android/keystore-orig.jks
173+
keytool -importkeystore \
174+
-srckeystore android/keystore-orig.jks \
175+
-destkeystore android/keystore.jks \
176+
-deststoretype pkcs12 \
177+
-srcstorepass "${{ secrets.ANDROID_STORE_PASSWORD }}" \
178+
-deststorepass "${{ secrets.ANDROID_STORE_PASSWORD }}" \
179+
-noprompt \
180+
-J-Dkeystore.pkcs12.legacy
181+
rm android/keystore-orig.jks
173182
cat > android/key.properties <<EOF
174183
storeFile=../keystore.jks
175184
storePassword=${{ secrets.ANDROID_STORE_PASSWORD }}

0 commit comments

Comments
 (0)