summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Peter Christen <mc@yacy.net>2015-12-26 22:25:08 +0100
committerMichael Peter Christen <mc@yacy.net>2015-12-26 22:25:08 +0100
commit5a39f9f679e034e236e12bf121795bb948126e8b (patch)
treeced52c8679f94309943ff5fc24df31b357f13e34
parent967508a87db47ebb236ee6dffbaafbf0920ba775 (diff)
stub to use a new app launcher for mac
-rw-r--r--addon/YaCy.app/Contents/Info.plist71
-rwxr-xr-xaddon/YaCy.app/Contents/MacOS/JavaAppLauncherbin0 -> 18604 bytes
-rwxr-xr-xaddon/YaCy.app/Contents/MacOS/JavaApplicationStub16
-rw-r--r--addon/YaCy.app/Contents/Resources/en.lproj/Localizable.strings3
-rw-r--r--build.xml2
5 files changed, 44 insertions, 48 deletions
diff --git a/addon/YaCy.app/Contents/Info.plist b/addon/YaCy.app/Contents/Info.plist
index 8bb1c681e..2d46c21f2 100644
--- a/addon/YaCy.app/Contents/Info.plist
+++ b/addon/YaCy.app/Contents/Info.plist
@@ -1,34 +1,43 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist SYSTEM "file://localhost/System/Library/DTDs/PropertyList.dtd">
-<plist version="0.9">
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
<dict>
- <key>CFBundleName</key>
- <string>YaCy</string>
- <key>CFBundleDisplayName</key>
- <string>YaCy</string>
- <key>CFBundleShortVersionString</key>
- <string>1.82</string>
- <key>CFBundleGetInfoString</key>
- <string>Peer-to-Peer Search Engine</string>
- <key>NSHumanReadableCopyright</key>
- <string>GPL-2.0</string>
- <key>CFBundleIdentifier</key>
- <string>net.yacy.yacy</string>
- <key>CFBundleVersion</key>
- <string>1.82</string>
- <key>CFBundleAllowMixedLocalizations</key>
- <string>true</string>
- <key>CFBundleExecutable</key>
- <string>JavaApplicationStub</string><!-- relative to Contents/MacOS -->
- <key>CFBundleDevelopmentRegion</key>
- <string>English</string>
- <key>CFBundlePackageType</key>
- <string>APPL</string>
- <key>CFBundleSignature</key>
- <string>????</string>
- <key>CFBundleInfoDictionaryVersion</key>
- <string>6.0</string>
- <key>CFBundleIconFile</key>
- <string>YaCy_2013_Icon.icns</string><!-- relative to Contents/Resources -->
+<key>CFBundleName</key>
+<string>YaCy</string>
+<key>CFBundleDisplayName</key>
+<string>YaCy</string>
+<key>CFBundleShortVersionString</key>
+<string>1.82</string>
+<key>CFBundleGetInfoString</key>
+<string>Peer-to-Peer Search Engine</string>
+<key>NSHumanReadableCopyright</key>
+<string>GPL-2.0</string>
+<key>CFBundleIdentifier</key>
+<string>net.yacy.yacy</string>
+<key>CFBundleVersion</key>
+<string>1.82</string>
+<key>CFBundleAllowMixedLocalizations</key>
+<string>true</string>
+<key>CFBundleExecutable</key>
+<string>JavaAppLauncher</string>
+<key>CFBundleDevelopmentRegion</key>
+<string>English</string>
+<key>CFBundlePackageType</key>
+<string>APPL</string>
+<key>CFBundleSignature</key>
+<string>????</string>
+<key>CFBundleInfoDictionaryVersion</key>
+<string>6.0</string>
+<key>CFBundleIconFile</key>
+<string>YaCy_2013_Icon.icns</string>
+<key>JVMMainClassName</key>
+<string>net.yacy.yacy</string>
+<key>JVMOptions</key>
+<array>
+</array>
+<key>JVMArguments</key>
+<array>
+</array>
+
</dict>
-</plist> \ No newline at end of file
+</plist>
diff --git a/addon/YaCy.app/Contents/MacOS/JavaAppLauncher b/addon/YaCy.app/Contents/MacOS/JavaAppLauncher
new file mode 100755
index 000000000..7bddebea2
--- /dev/null
+++ b/addon/YaCy.app/Contents/MacOS/JavaAppLauncher
Binary files differ
diff --git a/addon/YaCy.app/Contents/MacOS/JavaApplicationStub b/addon/YaCy.app/Contents/MacOS/JavaApplicationStub
deleted file mode 100755
index 9f0dd6333..000000000
--- a/addon/YaCy.app/Contents/MacOS/JavaApplicationStub
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/bin/sh
-PRG=$0
-while [ -h "$PRG" ]; do
- ls=`ls -ld "$PRG"`
- link=`expr "$ls" : '^.*-> \(.*\)$' 2>/dev/null`
- if expr "$link" : '^/' 2> /dev/null >/dev/null; then
- PRG="$link"
- else
- PRG="`dirname "$PRG"`/$link"
- fi
-done
-PROGDIR=`dirname "$PRG"`
-cd "$PROGDIR"/../../
-echo `pwd`
-cd Contents/Resources/Java
-./startYACY.sh -gui Library/YaCy
diff --git a/addon/YaCy.app/Contents/Resources/en.lproj/Localizable.strings b/addon/YaCy.app/Contents/Resources/en.lproj/Localizable.strings
new file mode 100644
index 000000000..0d306aaaf
--- /dev/null
+++ b/addon/YaCy.app/Contents/Resources/en.lproj/Localizable.strings
@@ -0,0 +1,3 @@
+"JRELoadError" = "Unable to load Java Runtime Environment.";
+"MainClassNameRequired" = "Main class name is required.";
+"JavaDirectoryNotFound" = "Unable to enumerate Java directory contents.";
diff --git a/build.xml b/build.xml
index 95cc602ac..006c458f9 100644
--- a/build.xml
+++ b/build.xml
@@ -780,7 +780,7 @@
</copy>
<copy file="${addon}/YaCy.app/Contents/Info.plist" tofile="${release_mac}/YaCy.app/Contents/Info.plist" filtering="true" overwrite="true" />
<move file="${release_main}" tofile="${release_mac}/YaCy.app/Contents/Resources/Java" verbose="false" />
- <chmod file="${release_mac}/YaCy.app/Contents/MacOS/JavaApplicationStub" perm="755"/>
+ <chmod file="${release_mac}/YaCy.app/Contents/MacOS/JavaAppLauncher" perm="755"/>
<chmod file="${release_mac}/YaCy.app/Contents/Resources/Java/startYACY.sh" perm="755"/>
<exec executable="hdiutil">
<arg line="create -srcfolder ${release_mac}/YaCy.app ${release}/yacy_v${releaseVersion}_${DSTAMP}_${releaseNr}.dmg"/>