The Godot Q&A is currently undergoing maintenance!

Your ability to ask and answer questions is temporarily disabled. You can browse existing threads in read-only mode.

We are working on bringing this community platform back to its full functionality, stay tuned for updates. | Twitter

0 votes

I am using a custom java module as well as a release key in my project. If I give absolute path for them in export options, they work fine. However, if I try to give relative path, with res://, the custom apk works, but while fetching the keystore, godot is implicitly prefixing the absolute path before res, resulting in export being failed. Details:



terminal output during export

jarsigner error: java.lang.RuntimeException: keystore load: /home/kaushik/godot/projects/texttest/res:/keystore_key/release.keystore (No such file or directory)
Doesn't make any sense. Any help appreciated.

in Engine by (51 points)

1 Answer

+1 vote
Best answer

I think it doesn't make sense putting export template and keystore under res://

If you want it as relative path,
put custom package and keystore outside of res://
and using custom_package/release="../template/java-release.apk" or something like that.

by (9,800 points)
selected by

Thanks, this works.

I have a requirement to ship the project and I wanted minimal user intervention for export options. That's why I wanted to hard-code those values in export.cfg.

I was already underway to implement a dirty hack. I was doing a getwd(buf); and then buf+"customkey/rel.key" and pass this as the keystore before OS::getsingleton()->execute(jarsigner,args,true,NULL,NULL,&retval);

getwd() was returning the res::// absolute path to me and I had it there. But your suggestion is cleaner than cluttering the code.

Can you explain why ../ works for jarsigner ??

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.