ant genkeys stuck
I'm just getting started trying to develop extensions for Moneydance. I downloaded the app and the development kit from https://infinitekind.com/developer; I installed ant using homebrew on my Mac and I'm trying to build and run the example extension.
Following the instructions in the README file, I first tried to execute ant genkeys. However, the command never finishes, showing only the following:
$ ant genkeys
Buildfile: /Users/ed/moneydance-devkit-5.1/src/build.xml
genkeys:
[java] Generating keys...
I've been waiting for at least 2 hours and it still doesn't finish. I've canceled it and ran it again with the same result.
How do I get it to correctly generate the keys?
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
1 Posted by Stuart Beesley ... on 09 Feb, 2024 01:21 AM
It’s waiting for keyboard input (I expect). ant genkeys is instantaneous.
Are you running this from an IDE or terminal? If IDE try the terminal.
Try typing a password and press enter.
PS - I don’t even think you need to generate keys and I don’t think you need to self sign your mxt file. I could be wrong….
2 Posted by edcasillas on 09 Feb, 2024 02:18 AM
OMG yes, you're correct! After writing some password and hitting Enter, the command continues with the text "Enter a passphrase to decrypt this key"... how confusing is that it prompts for the passphrase AFTER it was entered.
I was able to generate the keys, and then ran `ant`. The same happened, it appeared to be stuck. I entered the same passphrase, hit Enter and it finished in a second. I was then able to load the extension by dragging the ext file onto the open app.
BTW it is indeed necessary to generate the keys, otherwise ant will fal indicating the keys do not exist.
Thanks for the help!
3 Posted by Stuart Beesley ... on 09 Feb, 2024 07:28 AM
I think that’s because the ant build runs the task to sign the mxt. You can probably edit the build.xml to skip the mxt signing. Really the signing is only of use when IK do it to tell MD that the extension is valid/signed.
But there’s no harm in self signing and it does prevent mxt tampering.
4 Posted by Mike Bray (Quot... on 09 Feb, 2024 11:07 AM
You might find this information useful https://github.com/mrbray99/moneydanceproduction/wiki.
You can automatically sign an extension using my signmxt.jar (see https://github.com/mrbray99/moneydanceproduction/wiki/Development-E...)
5 Posted by edcasillas on 13 Feb, 2024 05:42 AM
That's a fantastic resource! Thanks!!
edcasillas closed this discussion on 13 Feb, 2024 06:09 AM.