I am using JPackage from Java 14 on MacOS and need to copy files to the MacOS and Resources folders of the app prior to building the DMG but do not see how. In the Packaging Tool User's Guide it mentions running a script from the resources folder named application-name-post-image.sh but that does not seem to happen.
To do this, you need to split up the process into 3 steps:
Please read section 5 of the JPackage user's guide which describes this process in further detail. Essentially, you'll need to make two jpackage calls, one for generating the app image and one for generating the final dmg file.
Hope this helps!