-
Notifications
You must be signed in to change notification settings - Fork 51
Configure Equinox products
Previous page: Create first Equinox app.
- 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.
- 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. 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.