Build and bundle for multiple platforms from the command line

I’ve updated the gist. bob.jar was previously run like this:

java -Djava.ext.dirs= -jar bob.jar

The reason for the -Djava.ext.dirs= part was to avoid a potential conflict with vecmath.jar but now we actually need a working ext dirs path to give bob access to the cryptographic functionality needed for LiveUpdate.

If you’re running into an issue with vecmath.jar you could probably set ext dirs to point to the ext folder inside your Defold installation. Do a recursive search for vecmath.jar and set your exit dirs to the containing folder. Something like this:

java -Djava.ext.dirs=./Users/bjorn.ritzl/Defold-macosx.cocoa.x86_64/configuration/org.eclipse.osgi/bundles/1578/1/.cp/ext/ -jar bob.jar
5 Likes