r0adkll / sign-android-release

A GitHub action to sign an APK or AAB
MIT License
362 stars 137 forks source link

Failed to load signer "signer #1" java.io.EOFException #65

Closed vitalyk-multinarity closed 2 years ago

vitalyk-multinarity commented 2 years ago

I saw a few similar reports and read all suggestions, but so far couldn't resolve this issue. Note: I'm using the same signingKeyBase64 secret for my Android unity builds (game-ci/unity-builder) and my Unity .apk is signed OK. My signingKeyBase64 is single-line text with size=3257 bytes ("ls -l"). It looks like a private SSH key, but without "-----BEGIN OPENSSH PRIVATE KEY-----" header and footer. Which things I should check/modify in my build?

Thanks, Vitaly

vitalyk-multinarity commented 2 years ago

Update: I'm able to sign my .apk manually using

apksigner sign -v --out /tmp/myapp-signed.apk -ks keystore_base64_decoded --ks-key-alias release --ks-pass pass:my_real_pass /tmp/myapp.apk

where keystore_base64_decoded is received by base64 --decode keystore_encoded > keystore_base64_decoded

vitalyk-multinarity commented 2 years ago

Update: it seems like the action doesn't receive all parameters - see attached screenshot

Screen Shot 2022-05-30 at 17 38 15

Usually I see all 'with' params here... .

vitalyk-multinarity commented 2 years ago

Shame on me! - I used this workflow via workflow_call and didn't pass all relevant secrets.