android-sign icon indicating copy to clipboard operation
android-sign copied to clipboard

Error File not found

Open harshmittal2810 opened this issue 5 years ago • 5 comments

I have tried and getting this error

Error: File not found: '/home/runner/work/_actions/Tlaster/android-sign/v1/lib/main.js'

harshmittal2810 avatar Nov 24 '20 20:11 harshmittal2810

Can you try the latest version v1.2.2?

- name: Android Sign
  uses: Tlaster/[email protected]

Tlaster avatar Nov 25 '20 05:11 Tlaster

I have tried with this, not getting the new issue.

jarsigner: unable to open jar file: customer/build/outputs/bundle/prodRelease/customer-prod-release-signed.aab
Error: The process '/opt/hostedtoolcache/jdk/8.0.275/x64/bin/jarsigner' failed with exit code 1

harshmittal2810 avatar Nov 25 '20 06:11 harshmittal2810

You should change the readme, we used the values from there, but it fixes the issue

LuisPeregrina avatar Sep 26 '21 17:09 LuisPeregrina

When I tried the readme with the updated version above, I get this error:

Run Tlaster/[email protected] with: releaseDirectory: app/build/outputs/apk/release app/build/outputs/bundle/release

output: build/release/signed

env: JAVA_HOME: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/11.0.15-10/x64 Error: ENOENT: no such file or directory, scandir 'app/build/outputs/apk/release'

brett-james-rocketlab avatar Jun 15 '22 03:06 brett-james-rocketlab

This issue seems valid. Note my workflow file is the same as WindFi (https://github.com/Tlaster/android-sign/issues/163) except we are not specifying env: JAVA_HOME. Everything works fine when signing APKs exactly as depicted above, butane we add "app/build/outputs/bundle/release" to our releaseDirectory we get jar signer failed with exit code 1 - unable to open ****.aab file.
I've reproduced the issue locally. Putting jar signer/aab file/keystore.jks in the same folder and running jarsigner command resolves the issue. Something seems to be up w/ the file system..

mposch-Z avatar Nov 17 '22 20:11 mposch-Z