I did a raincheck and recent versions of NSIS seem to support building on cross-platforms. So the approach is doable and can be fully automated on Linux/macOS with some scripting.
It can be done using osslsigncode and sign4j compiled for those platforms. Launch4j is a java program and is inherent cross-platform, alas one must provide objcopy and ld for the platforms of interest. NSIS might be a different beast.
Or is it a question of how to bundle the app for macOS?
Yes, use sign4j + osslsigncode together. That's how I do it.
Err? Your problem isn't the JDK, Launch4j is for producing Windows executables only. For OS X you can use appbundler or something equalient. Maybe I didn't get you but the problem is that you cannot create Windows executables?
Err? Your problem isn't the JDK, Launch4j is for producing Windows executables only. For OS X you can use appbundler or something equalient.
Í was thinking of providing a tool for this based on libbfd. I might start coding it
Í was thinking of providing a tool for this based on libbfd. I might start coding it