uqbar-project / wollok

Wollok Programming Language
GNU General Public License v3.0
60 stars 16 forks source link

Customize Info.plist file content for Wollok MacOS 64b version #921

Open javierfernandes opened 8 years ago

javierfernandes commented 8 years ago

Currently the product is generated by tycho which seems it doesn't have a way to customize the file. The generated file looks like this

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">

<dict>
        <key>CFBundleExecutable</key>
                <string>eclipse</string>
        <key>CFBundleGetInfoString</key>
                <string>Eclipse 4.3 for Mac OS X, Copyright IBM Corp. and others 2002, 2012. All rights reserved.</string>
        <key>CFBundleIconFile</key>
                <string>Eclipse.icns</string>
        <key>CFBundleIdentifier</key>
                <string>org.eclipse.platform.ide</string>
        <key>CFBundleInfoDictionaryVersion</key>
                <string>6.0</string>
        <key>CFBundleName</key>
                <string>eclipse</string>
        <key>CFBundlePackageType</key>
                <string>APPL</string>
        <key>CFBundleShortVersionString</key>
                <string>4.3.2</string>
        <key>CFBundleSignature</key>
                <string>????</string>
        <key>CFBundleVersion</key>
                <string>4.3.2.M20140221-1700</string>
        <key>NSHighResolutionCapable</key>
                <true/>
        <key>CFBundleDevelopmentRegion</key>
                <string>English</string>
        <key>CFBundleLocalizations</key>
                <array>
                        <string>ar</string>
                        <string>cs</string>
                        <string>da</string>
                        <string>el</string>
                        <string>en</string>
                        <string>es</string>
                        <string>de</string>
                        <string>fi</string>
                        <string>fr</string>
                        <string>hu</string>
                        <string>it</string>
                        <string>iw</string>
                        <string>ja</string>
                        <string>ko</string>
                        <string>nl</string>
                        <string>no</string>
                        <string>pl</string>
                        <string>pt_BR</string>
                        <string>pt</string>
                        <string>ru</string>
                        <string>sv</string>
                        <string>tr</string>
                        <string>zh_HK</string>
                        <string>zh_TW</string>
                        <string>zh</string>
                </array>

        <key>Eclipse</key>
                <array>
                        <!-- to use a specific Java version (instead of the platform's default) uncomment one of the following options:
                                <string>-vm</string><string>/System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Commands/java</string>
                                <string>-vm</string><string>/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Commands/java</string>
                        -->
                        <string>-keyring</string><string>~/.eclipse_keyring</string>
                        <string>-showlocation</string>
                        <!-- WARNING:
                                If you try to add a single VM argument (-vmargs) here,
                                *all* vmargs specified in eclipse.ini will be ignored.
                                We recommend to add all arguments in eclipse.ini
                         -->
                </array>
</dict>

We should try to customize:

I found a small maven plugin that can be used

https://github.com/buchen/fix-info-plist-maven-plugin

It would also be nice to see if there's a way to tell MacOS that this app requires java 8 and not java6

fdodino commented 7 years ago

I think it is not so important, but I confuses Mac students, so any further research is appreciated. Unfortunately I don't have Mac.

npasserini commented 7 years ago

I am not sure to be understanding the problem. If the problem is that we require Java8, we could at least add it to the installation docs, right?