Я написал свою программу на Java в OS X, и я хочу объединить свой .JAR в работающее .APP, чтобы я мог распространять свою программу. Я использую OS X 10.9 и не могу найти Apple JarBundler.app на своем компьютере. Я посмотрел решение Oracle Jar Bundler, и для него требуется .plist. Итак, мой вопрос: как мне создать нужный plist и могу ли я вручную создать свое .app?
Решение:
После достаточной настройки я, наконец, смог собрать свое java-приложение и запустить его как .app.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>NSPrefPaneIconFile</key>
<string>NotesClonerIcon.icns</string>
<key>Java</key>
<dict>
<key>JVMVersion</key>
<string>1.6+</string>
<key>MainClass</key>
<string>Notes_Cloner</string>
<key>ClassPath</key>
<string>$JAVAROOT/NotesCloner.jar</string>
<key>Properties</key>
<dict>
<key>java.library.path</key>
<string>$JAVAROOT/</string>
</dict>
</dict>
<key>Properties</key>
<dict>
<key>apple.laf.useScreenMenuBar</key>
<string>true</string>
</dict>
<key>CFBundleExecutable</key>
<string>JavaApplicationStub</string>
<key>CFBundleIconFile</key>
<string>NotesClonerIcon.icns</string>
<key>WorkingDirectory</key>
<string>$APP_PACKAGE/Contents/Resources/</string>
<key>CFBundleName</key>
<string>Notes Cloner Mac</string>
<key>CFBundleDisplayName</key>
<string>Notes Cloner Mac</string>
<key>NSPrefPaneIconLabel</key>
<string>Notes Cloner Preferences</string>
<key>CFBundleGetInfoString</key>
<string>Written By:Larry Wells </string>
<key>NSHumanReadableCopyright</key>
<string>Copyright © 2013, Larry Wells,All Rights Reserved.</string>
<key>CFBundleIdentifier</key>
<string>com.LarryWells.NotesClonerMac</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>1.0</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.0.0</string>
</dict>
</plist>