Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] p2 provisioning from DMG / changed file structure

In an Eclipse install produced by Tycho, p2 director or a couple other build tools, all the files are under p2's responsibility. As such, moving things around will just end up confusing things for when p2 will try to add more plugins.

However know that since Tycho 0.19.0 (though I believe it is possible with 0.17 and 0.18), you can produce a mac bundle.
IIrc this is automatically enabled if the application name ends with .app
Note though that the produced layout will not be exactly like what you want. Instead, you will find directly in the .app folder the features and plugins folders, but the resulting app is fully updatable with p2.



On 01/23/2014 04:33 AM, Sonja Subicin wrote:
Hey there,
we are discovering an issue enabling the p2 provisioning for the DMG file we have created. We have the following setup:
We have configured a multi-platform tycho build. The provisioning of the exported product works fine for all platforms - BUT

THEN, we are using a shell script to create the dmg file.

This script is using a template.dmg file. I have to add, and this is the important part, that we are changing the file structure when running the shell script.

The dmg template contains the following file structure

whereas the exported product has the following, flat file structure:

Using the shell script, we are replacing the folders configuration, features, p2, plugins with the folders from our tycho-built product.
The info.plist File etc. are staying unchanged.

I believe the changes of the folder structure to be the problem, but I have no idea, how to fix this.
In our config.ini, we have the following parameters set:


The features we want to update are not being downloaded to the defined folder @user.home/.ourproduct/
We are getting provisioning error code 10001.

Any idea would be appreciated!

Greetings from Cologne,
tycho-user mailing list

Back to the top