Load grid list in LaunchSLClient from .ini file at run-time.

Add script to build LaunchSLClient.app on OS X.
This commit is contained in:
Jeff Ames
2008-05-01 18:28:32 +00:00
parent 20a9bf08f5
commit c1e901989a
6 changed files with 150 additions and 18 deletions

View File

@@ -0,0 +1,38 @@
#!/bin/sh
# This script will build LaunchSLClient.app from the .exe, .dll's, and
# other necessary files.
#
# This should be run from the bin directory.
APP_NAME="LaunchSLClient"
# Note that proper form is to copy Frameworks to
# *.app/Contents/Frameworks, but because @executable_path resolves to
# [...]/Resources/bin, and the libraries reference
# @executable_path/../Frameworks, we put frameworks in
# Contents/Resources instead.
FRAMEWORKS_PATH="${APP_NAME}.app/Contents/Resources/Frameworks"
if [ ! -e ${APP_NAME}.exe ]; then
echo "Error: Could not find ${APP_NAME}.exe." >& 2
echo "Have you built it, and are you currently in the bin directory?" >& 2
exit 1
fi
CMDFLAGS="-m console -n ${APP_NAME} -a ${APP_NAME}.exe"
REFERENCES="-r /Library/Frameworks/Mono.framework/Versions/Current/lib/ \
-r Nini.dll \
-r ${APP_NAME}.ini"
if [ -f ${APP_NAME}.icns ]; then
CMDFLAGS="${CMDFLAGS} -i ${APP_NAME}.icns"
else
echo "Warning: no icon file found. Will use default application icon." >&2
fi
if [ -d ${APP_NAME}.app ]; then rm -rf ${APP_NAME}.app; fi
macpack ${REFERENCES} ${CMDFLAGS}
mkdir -p ${FRAMEWORKS_PATH}