OSDN Git Service

Mac OS X用のインストーラ関係のファイルを追加
authoryuki <kimaira7@gmail.com>
Wed, 30 Apr 2014 06:35:37 +0000 (15:35 +0900)
committeryuki <kimaira7@gmail.com>
Wed, 30 Apr 2014 06:35:37 +0000 (15:35 +0900)
installbuilder/installbuilder_mac.xml [new file with mode: 0755]
installbuilder/neighbornote-osx.app/Contents/Info.plist [new file with mode: 0755]
installbuilder/neighbornote-osx.app/Contents/MacOS/neighbornote-osx.sh [new file with mode: 0755]
installbuilder/neighbornote-osx.app/Contents/Resources/neighbornote.icns [new file with mode: 0755]

diff --git a/installbuilder/installbuilder_mac.xml b/installbuilder/installbuilder_mac.xml
new file mode 100755 (executable)
index 0000000..4321a31
--- /dev/null
@@ -0,0 +1,201 @@
+<project>
+    <shortName>neighbornote</shortName>
+    <fullName>NeighborNote</fullName>
+    <version>0.4.1</version>
+    <readmeFile>/Users/takahashi/Desktop/NeighborNote/README.md</readmeFile>
+    <licenseFile>/Users/takahashi/Desktop/NeighborNote/LICENSE</licenseFile>
+    <logoImage>/Users/takahashi/Desktop/NeighborNote/installbuilder/installerLogo.png</logoImage>
+    <splashImage>/Users/takahashi/Desktop/NeighborNote/installbuilder/installerSplash.png</splashImage>
+    <allowLanguageSelection>1</allowLanguageSelection>
+    <componentList>
+        <component>
+            <name>default</name>
+            <description>Default Component</description>
+            <canBeEdited>1</canBeEdited>
+            <selected>1</selected>
+            <show>1</show>
+            <desktopShortcutList>
+                <shortcut>
+                    <comment>NeighborNote</comment>
+                    <exec>${installdir}/neighbornote.sh</exec>
+                    <icon>${installdir}/neighbornote.png</icon>
+                    <name>NeighborNote</name>
+                    <path></path>
+                    <platforms>all</platforms>
+                    <runAsAdmin>0</runAsAdmin>
+                    <runInTerminal>0</runInTerminal>
+                    <windowsExec>${installdir}/neighbornote.bat</windowsExec>
+                    <windowsExecArgs></windowsExecArgs>
+                    <windowsIcon>${installdir}/neighbornote.ico</windowsIcon>
+                    <windowsPath></windowsPath>
+                </shortcut>
+            </desktopShortcutList>
+            <folderList>
+                <folder>
+                    <description>Program Files</description>
+                    <destination>${installdir}</destination>
+                    <name>programfiles</name>
+                    <platforms>all</platforms>
+                    <distributionFileList>
+                        <distributionDirectory>
+                            <origin>/Users/takahashi/Desktop/NeighborNote/images</origin>
+                        </distributionDirectory>
+                        <distributionDirectory>
+                            <origin>/Users/takahashi/Desktop/NeighborNote/lib</origin>
+                        </distributionDirectory>
+                        <distributionDirectory>
+                            <origin>/Users/takahashi/Desktop/NeighborNote/qss</origin>
+                        </distributionDirectory>
+                        <distributionDirectory>
+                            <origin>/Users/takahashi/Desktop/NeighborNote/spell</origin>
+                        </distributionDirectory>
+                        <distributionDirectory>
+                            <origin>/Users/takahashi/Desktop/NeighborNote/translations</origin>
+                        </distributionDirectory>
+                        <distributionDirectory>
+                            <origin>/Users/takahashi/Desktop/NeighborNote/xml</origin>
+                        </distributionDirectory>
+                        <distributionFile>
+                            <origin>/Users/takahashi/Desktop/NeighborNote/neighbornote.jar</origin>
+                        </distributionFile>
+                        <distributionDirectory>
+                            <origin>/Users/takahashi/Desktop/NeighborNote/extras</origin>
+                        </distributionDirectory>
+                        <distributionFile>
+                            <origin>/Users/takahashi/Desktop/NeighborNote/copyright</origin>
+                        </distributionFile>
+                        <distributionFile>
+                            <origin>/Users/takahashi/Desktop/NeighborNote/gpl.txt</origin>
+                        </distributionFile>
+                        <distributionFile>
+                            <origin>/Users/takahashi/Desktop/NeighborNote/LICENSE</origin>
+                        </distributionFile>
+                        <distributionFile>
+                            <origin>/Users/takahashi/Desktop/NeighborNote/README.md</origin>
+                        </distributionFile>
+                        <distributionFile>
+                            <origin>/Users/takahashi/Desktop/NeighborNote/release.txt</origin>
+                        </distributionFile>
+                    </distributionFileList>
+                    <shortcutList>
+                        <shortcut>
+                            <comment>Uninstall</comment>
+                            <exec>${installdir}/${uninstallerName}</exec>
+                            <icon></icon>
+                            <name>Uninstall ${product_fullname}</name>
+                            <path>${installdir}</path>
+                            <platforms>all</platforms>
+                            <runAsAdmin>0</runAsAdmin>
+                            <runInTerminal>0</runInTerminal>
+                            <windowsExec>${installdir}/${uninstallerName}.exe</windowsExec>
+                            <windowsExecArgs></windowsExecArgs>
+                            <windowsIcon></windowsIcon>
+                            <windowsPath>${installdir}</windowsPath>
+                        </shortcut>
+                    </shortcutList>
+                </folder>
+                <folder>
+                    <description>Program Files</description>
+                    <destination>${installdir}</destination>
+                    <name>programfilesosx</name>
+                    <platforms>osx</platforms>
+                    <distributionFileList>
+                        <distributionDirectory>
+                            <origin>/Users/takahashi/Desktop/NeighborNote/installbuilder/neighbornote-osx.app</origin>
+                        </distributionDirectory>
+                    </distributionFileList>
+                </folder>
+                <folder>
+                    <description>Lib</description>
+                    <destination>${installdir}/lib</destination>
+                    <name>libOSX</name>
+                    <platforms>osx</platforms>
+                    <distributionFileList>
+                        <distributionFile>
+                            <origin>/Users/takahashi/Desktop/qtjambi-mac-lgpl-4.5.2_01/qtjambi-macosx-gcc-4.5.2_01.jar</origin>
+                        </distributionFile>
+                        <distributionFile>
+                            <origin>/Users/takahashi/Desktop/qtjambi-mac-lgpl-4.5.2_01/qtjambi-macosx-4.5.2_01.jar</origin>
+                        </distributionFile>
+                    </distributionFileList>
+                </folder>
+            </folderList>
+            <startMenuShortcutList>
+                <startMenuShortcut>
+                    <comment>Uninstall ${product_fullname}</comment>
+                    <name>Uninstall ${product_fullname}</name>
+                    <runAsAdmin>0</runAsAdmin>
+                    <runInTerminal>0</runInTerminal>
+                    <windowsExec>${installdir}/${uninstallerName}.exe</windowsExec>
+                    <windowsExecArgs></windowsExecArgs>
+                    <windowsIcon>${installdir}/uninstall.ico</windowsIcon>
+                    <windowsPath>${installdir}/</windowsPath>
+                </startMenuShortcut>
+                <startMenuShortcut>
+                    <comment>NeighborNote</comment>
+                    <name>NeighborNote</name>
+                    <runAsAdmin>0</runAsAdmin>
+                    <runInTerminal>0</runInTerminal>
+                    <windowsExec>${installdir}/neighbornote.bat</windowsExec>
+                    <windowsExecArgs></windowsExecArgs>
+                    <windowsIcon>${installdir}/neighbornote.ico</windowsIcon>
+                    <windowsPath></windowsPath>
+                </startMenuShortcut>
+            </startMenuShortcutList>
+        </component>
+    </componentList>
+    <postInstallationActionList>
+        <runProgram>
+            <program>defaults</program>
+            <programArguments>write com.apple.dock persistent-apps -array-add '
+                &lt;dict&gt;
+                &lt;key&gt;tile-data&lt;/key&gt;
+                &lt;dict&gt;
+                &lt;key&gt;file-data&lt;/key&gt;
+                &lt;dict&gt;
+                &lt;key&gt;_CFURLString&lt;/key&gt;
+                &lt;string&gt;${installdir}/neighbornote-osx.app&lt;/string&gt;
+                &lt;key&gt;_CFURLStringType&lt;/key&gt;
+                &lt;integer&gt;0&lt;/integer&gt;
+                &lt;/dict&gt; &lt;/dict&gt; &lt;/dict&gt;'
+            </programArguments>
+        </runProgram>
+        <runProgram>
+            <program>killall</program>
+            <programArguments>-HUP Dock</programArguments>
+        </runProgram>
+    </postInstallationActionList>
+    <enableRollback>1</enableRollback>
+    <enableTimestamp>1</enableTimestamp>
+    <vendor>Yuki Takahashi</vendor>
+    <licenseFileList>
+        <licenseFile>
+            <code>en</code>
+            <encoding>utf-8</encoding>
+            <file>/Users/takahashi/Desktop/NeighborNote/LICENSE</file>
+        </licenseFile>
+    </licenseFileList>
+    <parameterList>
+        <directoryParameter>
+            <name>installdir</name>
+            <description>Installer.Parameter.installdir.description</description>
+            <explanation>Installer.Parameter.installdir.explanation</explanation>
+            <value></value>
+            <default>${platform_install_prefix}/${product_shortname}-${product_version}</default>
+            <allowEmptyValue>0</allowEmptyValue>
+            <ask>yes</ask>
+            <cliOptionName>prefix</cliOptionName>
+            <mustBeWritable>yes</mustBeWritable>
+            <mustExist>0</mustExist>
+            <width>40</width>
+        </directoryParameter>
+    </parameterList>
+    <readmeFileList>
+        <readmeFile>
+            <code>ja</code>
+            <encoding>utf-8</encoding>
+            <file>/Users/takahashi/Desktop/NeighborNote/README.md</file>
+        </readmeFile>
+    </readmeFileList>
+</project>
+
diff --git a/installbuilder/neighbornote-osx.app/Contents/Info.plist b/installbuilder/neighbornote-osx.app/Contents/Info.plist
new file mode 100755 (executable)
index 0000000..c3718cc
--- /dev/null
@@ -0,0 +1,16 @@
+<?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>neighbornote-osx.sh</string>
+        <key>CFBundleIconFile</key>
+        <string>neighbornote.icns</string>
+        <key>CFBundleIdentifier</key>
+        <string>jp.ac.ibaraki.neighbornote</string>
+        <key>CFBundleName</key>
+        <string>NeighborNote</string>
+        <key>CFBundlePackageType</key>
+        <string>APPL</string>
+</dict>
+</plist>
diff --git a/installbuilder/neighbornote-osx.app/Contents/MacOS/neighbornote-osx.sh b/installbuilder/neighbornote-osx.app/Contents/MacOS/neighbornote-osx.sh
new file mode 100755 (executable)
index 0000000..d581549
--- /dev/null
@@ -0,0 +1,128 @@
+#! /bin/sh
+
+###########################################
+# NeighborNote Startup script for OS-X
+###########################################
+
+
+eval $1
+
+###########################################
+# Location variables. Edit the variables #
+# below to your specific installation. #
+# The ones below are examples only. #
+###########################################
+
+NEIGHBORNOTE=$(cd `dirname $0` && cd ../../../ && pwd)
+# NEIGHBORNOTE=/usr/share/neighbornote
+
+########################################
+# Memory settings. These can be tuned #
+# to your specific needs. The greater #
+# the memory allocated the better #
+# your response may be, but the more #
+# resources the program will consume. #
+# Lower numbers may hurt performance #
+# but will reduce resource held by #
+# the program. If you get errors #
+# that say "out of memory" you need #
+# to increase these values. #
+########################################
+# Initial heap size
+NN_XMS=256M
+# Maximum heap size
+NN_XMX=1024M
+
+## The young generation
+# the young generation will occupy 1/2 of total heap
+NN_NEW_RATIO=1
+
+## GC option
+## recommend Incremental Low Pause GC for desktop apps 
+NN_GC_OPT=-Xincgc
+## recent multi-core CPU may show good performance
+#NN_GC_OPT=-XX:+UseParNewGC
+#NN_GC_OPT=-XX:+UseConcMarkSweepGC
+## same as default
+#NN_GC_OPT=-XX:+UseParallelGC
+
+## debug
+#NN_DEBUG=-agentlib:hprof=format=b
+#NN_DEBUG=-agentlib:hprof=cpu=samples,format=a
+#NN_DEBUG=-verbose:gc 
+
+########################################
+# This next variable is optional. It #
+# is only needed if you want to run #
+# multiple copies of NeighborNote under #
+# the same Linux user id. Each #
+# additional copy (after the first) #
+# should have a unique name. This #
+# permits the settings to be saved #
+# properly. If you only want to run #
+# one copy under a single userid, this #
+# can be commented out. #
+########################################
+#NN_NAME="sandbox" 
+
+
+#Do any parameter overrides
+while [ -n "$*" ]
+do
+eval $1
+shift
+done
+
+
+###################################################################
+###################################################################
+## You probably don't need to change anything below this line. ##
+###################################################################
+###################################################################
+
+
+#####################
+# Setup environment #
+#####################
+NN_CLASSPATH=$NEIGHBORNOTE/neighbornote.jar
+
+NN_CLASSPATH=$NN_CLASSPATH:$NEIGHBORNOTE/lib/apache-mime4j-0.6.jar
+NN_CLASSPATH=$NN_CLASSPATH:$NEIGHBORNOTE/lib/commons-codec-1.5.jar
+NN_CLASSPATH=$NN_CLASSPATH:$NEIGHBORNOTE/lib/commons-compress-1.2.jar
+NN_CLASSPATH=$NN_CLASSPATH:$NEIGHBORNOTE/lib/commons-lang3-3.0.jar
+NN_CLASSPATH=$NN_CLASSPATH:$NEIGHBORNOTE/lib/commons-logging-1.1.1.jar
+NN_CLASSPATH=$NN_CLASSPATH:$NEIGHBORNOTE/lib/evernote-api-1.25.0.jar
+NN_CLASSPATH=$NN_CLASSPATH:$NEIGHBORNOTE/lib/h2-1.3.163.jar
+NN_CLASSPATH=$NN_CLASSPATH:$NEIGHBORNOTE/lib/h2-lucene-ex-1.3.163.jar
+NN_CLASSPATH=$NN_CLASSPATH:$NEIGHBORNOTE/lib/httpclient-4.1.1.jar
+NN_CLASSPATH=$NN_CLASSPATH:$NEIGHBORNOTE/lib/httpcore-4.1.jar
+NN_CLASSPATH=$NN_CLASSPATH:$NEIGHBORNOTE/lib/httpmime-4.1.1.jar
+NN_CLASSPATH=$NN_CLASSPATH:$NEIGHBORNOTE/lib/jaxen-1.1.3.jar
+NN_CLASSPATH=$NN_CLASSPATH:$NEIGHBORNOTE/lib/jazzy.jar
+NN_CLASSPATH=$NN_CLASSPATH:$NEIGHBORNOTE/lib/jtidy-r938.jar
+NN_CLASSPATH=$NN_CLASSPATH:$NEIGHBORNOTE/lib/libthrift.jar
+NN_CLASSPATH=$NN_CLASSPATH:$NEIGHBORNOTE/lib/log4j-1.2.14.jar
+NN_CLASSPATH=$NN_CLASSPATH:$NEIGHBORNTOE/lib/lucene-analyzers-3.6.2.jar
+NN_CLASSPATH=$NN_CLASSPATH;$NEIGHBORNOTE/lib/lucene-core-3.6.2.jar
+NN_CLASSPATH=$NN_CLASSPATH:$NEIGHBORNOTE/lib/pdfbox-app-1.6.0.jar
+NN_CLASSPATH=$NN_CLASSPATH:$NEIGHBORNOTE/lib/poi-3.7-20101029.jar
+NN_CLASSPATH=$NN_CLASSPATH:$NEIGHBORNOTE/lib/poi-ooxml-3.7.jar
+NN_CLASSPATH=$NN_CLASSPATH:$NEIGHBORNOTE/lib/poi-ooxml-schemas-3.7-20101029.jar
+NN_CLASSPATH=$NN_CLASSPATH:$NEIGHBORNOTE/lib/poi-scratchpad-3.7-20101029.jar
+NN_CLASSPATH=$NN_CLASSPATH:$NEIGHBORNOTE/lib/scribe-1.3.0.jar
+NN_CLASSPATH=$NN_CLASSPATH:$NEIGHBORNOTE/lib/tika.jar
+NN_CLASSPATH=$NN_CLASSPATH:$NEIGHBORNOTE/lib/xmlbeans-2.3.0.jar
+NN_CLASSPATH=$NN_CLASSPATH:$NEIGHBORNOTE/lib/xsdlib-20060615.jar
+
+NN_CLASSPATH=$NN_CLASSPATH:$NEIGHBORNOTE/lib/qtjambi-macosx-4.5.2_01.jar
+NN_CLASSPATH=$NN_CLASSPATH:$NEIGHBORNOTE/lib/qtjambi-macosx-gcc-4.5.2_01.jar
+
+###################
+# Run the program #
+###################
+cd $NEIGHBORNOTE
+
+java -Xmx$NN_XMX -Xms$NN_XMS -XX:NewRatio=$NN_NEW_RATIO $NN_GC_OPT $NN_DEBUG -classpath $NN_CLASSPATH cx.fbn.nevernote.NeverNote --sync-only=$NN_SYNCONLY --home=$NN_HOME --name=$NN_NAME -XstartOnFirstThread -d32 -client
+
+cd -
+
diff --git a/installbuilder/neighbornote-osx.app/Contents/Resources/neighbornote.icns b/installbuilder/neighbornote-osx.app/Contents/Resources/neighbornote.icns
new file mode 100755 (executable)
index 0000000..e7fd396
Binary files /dev/null and b/installbuilder/neighbornote-osx.app/Contents/Resources/neighbornote.icns differ