Skip to content

Configure Equinox products

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

We already created first Equinox app. Now we 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: Each generated product is runnable on corresponding OS and architecture. Upon run, it 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 for this page: tutorialExamples/EquinoxApp-2.

Next page: Prepare Equinox app for multiproject build.

Clone this wiki locally