2017-05-25

Quick tip: Setting the application implementation version for native app bundles

If you have set up your NetBeans project to use native packaging, you can set the implementation version of your app by adding a line such as

application.implementation.version=1.1

to nbproject/project.properties. The version is for example used in the filename for .msi installation files. And you can access it from inside your Java code:

String version = getClass().getPackage().getImplementationVersion();
if (version == null) {
    version = …
}

Can you share some tips regarding NetBeans native packaging? I’d love to hear them…

No comments:

Post a Comment