Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[tycho-user] Building product for OSX

I am building an eclipse based product for win32, linux, and macosx. Until tycho 0.22.0 the maxosx build worked just fine by adding the corresponding environment to the tycho target-platform configuration plugin.
With tycho 0.23.{0,1} the directory structure in the zip file has changed such that the launcher (osate) and the corresponding ini file (osate.ini) are no longer in the same directory so the launcher can't run. They used to be in a subdir MacOS.
I also tried to switch to building an app bundle by using the following pom elements:
1. Set macosx-bundled to true

            <plugin>
                <groupId>org.eclipse.tycho</groupId>
                <artifactId>tycho-p2-repository-plugin</artifactId>
                <version>${tycho.version}</version>
                <configuration>
                    <profileProperties>
                        <macosx-bundled>true</macosx-bundled>
                    </profileProperties>
                </configuration>
            </plugin>

2. Set macosx root folder

            <plugin>
                <groupId>org.eclipse.tycho</groupId>
                <artifactId>tycho-p2-director-plugin</artifactId>
                <version>${tycho.version}</version>
                <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>
                    <formats>
                        <win32>zip</win32>
                        <linux>tar.gz</linux>
                        <macosx>tar.gz</macosx>
                    </formats>
                    <products>
                        <product>
                            <id>osate2</id>
                            <archiveFileName>${product.id}-${unqualifiedVersion}-${buildQualifier}</archiveFileName>
                            <rootFolders>
                                <rootFolder>${product.id}</rootFolder>
                                <macosx>${product.id}.app</macosx>
                            </rootFolders>
                        </product>
                    </products>
                </configuration>
            </plugin>

The resulting directory structure looks like a macosx app bundle BUT the ini file is still not in the same directory as the launcher.

osate2.app/
└── Contents
   ├── Eclipse
   │   ├── configuration
   │   ├── features
   │   ├── p2
   │   ├── plugins
   │   ├── artifacts.xml
   │   ├── epl-v10.html
   │   └── osate.ini
   ├── MacOS
   │   └── osate
   └── Info.plist

Am I missing some configuration or is this a bug?

Thanks!

Back to the top