Skip to content

Configure Equinox products

Andrey Hihlovskiy edited this page Apr 22, 2014 · 35 revisions

Provided that we already created our first Equinox application, we can now configure Equinox products.

  1. Let's add product definitions to "build.gradle":
products {
  product platform: 'linux', arch: 'x86_32'
  product platform: 'linux', arch: 'x86_64'
  product platform: 'windows', arch: 'x86_32'
  product platform: 'windows', arch: 'x86_64'
  archiveProducts = true
}

Here we define 4 products: 32-bit and 64-bit versions for Linux and 32-bit and 64-bit versions for Windows. Optional archiveProducts flag instructs wuff to archive the generated products. Linux versions will be archived as .tar.gz, Windows versions - as .zip. The default value of archiveProducts is false.

  1. Invoke on command line:
gradle build

CHECK: There are 4 products in "tutorials/MyEquinoxApp/build/output" folder. Each product contains "MyEquinoxApp" bundle in "plugins" subfolder and in "configuration/config.ini".

CHECK: The product matching your OS/architecture is runnable and prints "Hello, world! I am equinox application!" to the console.

Attention: do not try to run the generated product on a "wrong" OS or "wrong" architecture. If you are on Windows, Linux product won't start. If your JRE is 32-bit, 64-bit product won't start.

The example code corresponding to this page is located in tutorialExamples/EquinoxApp-2.

Now we can move on to Prepare Equinox app for multiproject build.

Clone this wiki locally