For some context, I'm using the jpackage utility to try to create a signed DMG file to deliver to my users. The reason I need to sign this DMG is because I would like to notarize the software. By the way, I'm not sure if notarization is possible (yet) using jpackage but I'm trying it anyway.
However, I am having trouble using jpackage's inbuilt code signing options, which is a prerequisite to successful notarization.
I am running jpackage using the options --mac-sign --mac-package-signing-prefix CardrDebate --mac-signing-key-user-name "Developer ID Application: ********** (*******)" (I've redacted the actual developer ID since this is public on StackOverflow).
After creating the jpackage app image, I tested whether the generated code was actually signed by navigating to several of the generated .dylib files and trying codesign -vvv {filename}.dylib, and codesign said that the objectwas not signed at all (NOT that it was incorrectly signed, but that it just wasn't signed at all).
Thus, I believe that my problem is from my (potentially) incorrect usage of jpackage's signing options on macOS. How should I be using these?