Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] single package for multiple platforms

 What do you mean manually?

When you say product archive do you mean RCP?

In your target-platform-configuration give all the platforms environments you want to build for:
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>target-platform-configuration</artifactId>
<configuration>
<executionEnvironment>JavaSE-1.6</executionEnvironment>
<resolver>p2</resolver>
<environments>
<environment>
<os>linux</os>
<ws>gtk</ws>
<arch>x86_64</arch>
</environment>
<environment>
<os>linux</os>
<ws>gtk</ws>
<arch>x86</arch>
</environment>
<environment>
<os>macosx</os>
<ws>cocoa</ws>
<arch>x86_64</arch>
</environment>
<environment>
<os>win32</os>
<ws>win32</ws>
<arch>x86</arch>
</environment>
<environment>
<os>win32</os>
<ws>win32</ws>
<arch>x86_64</arch>
</environment>
</environments>
</configuration>
</plugin> 

In your plugin with the .product file configure the tycho-p2-directory-plugin, replace the product ID with your products ID.
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-p2-director-plugin</artifactId>
<executions>
<execution>
<id>materialize-products</id>
<goals>
<goal>materialize-products</goal>
</goals>
</execution>
<execution>
<id>archive-products</id>
<goals>
<goal>archive-products</goal>
</goals>
</execution>
</executions>
<configuration>
<products>
<product>
<id>your.product.rcp</id>
</product>
</products>
</configuration>
</plugin>


In your Maven output you should see:
[INFO] --- tycho-p2-director-plugin:0.22.0:materialize-products (materialize-products) @ your.product.rcp ---
[INFO] Installing product your.product.rcp for environment linux/gtk/x86_64 to /Users/danijoh2/Workspaces/Product/releng/your.product.rcp/target/products/your.product.rcp/linux/gtk/x86_64
Installing your.product.rcp 0.9.0.201504241509.
Operation completed in 81117 ms.
[INFO] Installing product your.product.rcp for environment linux/gtk/x86 to /Users/danijoh2/Workspaces/Product/releng/your.product.rcp/target/products/your.product.rcp/linux/gtk/x86
Installing your.product.rcp 0.9.0.201504241509.
Operation completed in 98308 ms.
[INFO] Installing product your.product.rcp for environment macosx/cocoa/x86_64 to /Users/danijoh2/Workspaces/Product/releng/your.product.rcp/target/products/your.product.rcp/macosx/cocoa/x86_64
Installing your.product.rcp 0.9.0.201504241509.
Operation completed in 96549 ms.
[INFO] Installing product your.product.rcp for environment win32/win32/x86 to /Users/danijoh2/Workspaces/Product/releng/your.product.rcp/target/products/your.product.rcp/win32/win32/x86
Installing your.product.rcp 0.9.0.201504241509.
Operation completed in 94284 ms.
[INFO] Installing product your.product.rcp for environment win32/win32/x86_64 to /Users/danijoh2/Workspaces/Product/releng/your.product.rcp/target/products/your.product.rcp/win32/win32/x86_64
Installing your.product.rcp 0.9.0.201504241509.
Operation completed in 77809 ms.
[INFO] 
[INFO] --- tycho-p2-director-plugin:0.22.0:archive-products (archive-products) @ your.product.rcp ---
[INFO] Building zip: /Users/danijoh2/Workspaces/Product/releng/your.product.rcp/target/products/your.product.rcp-linux.gtk.x86_64.zip
[INFO] Building zip: /Users/danijoh2/Workspaces/Product/releng/your.product.rcp/target/products/your.product.rcp-linux.gtk.x86.zip
[INFO] Building zip: /Users/danijoh2/Workspaces/Product/releng/your.product.rcp/target/products/your.product.rcp-macosx.cocoa.x86_64.zip
[INFO] Building zip: /Users/danijoh2/Workspaces/Product/releng/your.product.rcp/target/products/your.product.rcp-win32.win32.x86.zip
[INFO] Building zip: /Users/danijoh2/Workspaces/Product/releng/your.product.rcp/target/products/your.product.rcp-win32.win32.x86_64.zip

Hope this helps.

Regards,
Daniel

From: Pascal Rapicault
Reply-To: Tycho user list
Date: Friday, April 24, 2015 at 6:47 AM
To: Tycho user list
Subject: Re: [tycho-user] single package for multiple platforms

It has to be done manually.

On 04/24/2015 09:46 AM, Massimo Rabbi wrote:
Hi all,
is there any chance of configuring Tycho so it can produce a final product archive that contains all the different versions (i.e. Linux 32/64, Windows 32/64 and Mac 64)?

The goal is to produce a final ZIP file containing all the product versions so it can be easily shipped and re-used in different environment. 
Something similar to what Talend does with its Open Studio product (see downloadable release package): https://www.talend.com/download/talend-open-studio

I was wondering if there is something to do it automatically or it should be done "manually"?

Sorry if it has been already asked, but I was not able to find it after a quick search among old threads.

Thanks in advance.
Best regards,
Massimo.




_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user


Back to the top