mirror of
https://github.com/ReactionQuake3/reaction.git
synced 2024-11-21 20:01:43 +00:00
Modify make-macosx-app.sh for Reaction
This commit is contained in:
parent
0126b6abbb
commit
4d326dc31c
1 changed files with 7 additions and 32 deletions
|
@ -137,12 +137,8 @@ IOQ3_RENDERER_GL2_ARCHS=""
|
|||
IOQ3_CGAME_ARCHS=""
|
||||
IOQ3_GAME_ARCHS=""
|
||||
IOQ3_UI_ARCHS=""
|
||||
IOQ3_MP_CGAME_ARCHS=""
|
||||
IOQ3_MP_GAME_ARCHS=""
|
||||
IOQ3_MP_UI_ARCHS=""
|
||||
|
||||
BASEDIR="baseq3"
|
||||
MISSIONPACKDIR="missionpack"
|
||||
BASEDIR="Boomstick"
|
||||
|
||||
CGAME="cgame"
|
||||
GAME="qagame"
|
||||
|
@ -150,7 +146,7 @@ UI="ui"
|
|||
|
||||
RENDERER_OPENGL="renderer_opengl"
|
||||
|
||||
DEDICATED_NAME="ioq3ded"
|
||||
DEDICATED_NAME="Reactionded"
|
||||
|
||||
CGAME_NAME="${CGAME}.dylib"
|
||||
GAME_NAME="${GAME}.dylib"
|
||||
|
@ -160,12 +156,12 @@ RENDERER_OPENGL1_NAME="${RENDERER_OPENGL}1.dylib"
|
|||
RENDERER_OPENGL2_NAME="${RENDERER_OPENGL}2.dylib"
|
||||
|
||||
ICNSDIR="misc"
|
||||
ICNS="quake3_flat.icns"
|
||||
ICNS="quake3.icns"
|
||||
PKGINFO="APPLIOQ3"
|
||||
|
||||
OBJROOT="build"
|
||||
#BUILT_PRODUCTS_DIR="${OBJROOT}/${TARGET_NAME}-darwin-${CURRENT_ARCH}"
|
||||
PRODUCT_NAME="ioquake3"
|
||||
PRODUCT_NAME="Reaction"
|
||||
WRAPPER_EXTENSION="app"
|
||||
WRAPPER_NAME="${PRODUCT_NAME}.${WRAPPER_EXTENSION}"
|
||||
CONTENTS_FOLDER_PATH="${WRAPPER_NAME}/Contents"
|
||||
|
@ -220,16 +216,6 @@ for ARCH in $SEARCH_ARCHS; do
|
|||
if [ -e ${BUILT_PRODUCTS_DIR}/${BASEDIR}/${IOQ3_UI} ]; then
|
||||
IOQ3_UI_ARCHS="${BUILT_PRODUCTS_DIR}/${BASEDIR}/${IOQ3_UI} ${IOQ3_UI_ARCHS}"
|
||||
fi
|
||||
# missionpack
|
||||
if [ -e ${BUILT_PRODUCTS_DIR}/${MISSIONPACKDIR}/${IOQ3_CGAME} ]; then
|
||||
IOQ3_MP_CGAME_ARCHS="${BUILT_PRODUCTS_DIR}/${MISSIONPACKDIR}/${IOQ3_CGAME} ${IOQ3_MP_CGAME_ARCHS}"
|
||||
fi
|
||||
if [ -e ${BUILT_PRODUCTS_DIR}/${MISSIONPACKDIR}/${IOQ3_GAME} ]; then
|
||||
IOQ3_MP_GAME_ARCHS="${BUILT_PRODUCTS_DIR}/${MISSIONPACKDIR}/${IOQ3_GAME} ${IOQ3_MP_GAME_ARCHS}"
|
||||
fi
|
||||
if [ -e ${BUILT_PRODUCTS_DIR}/${MISSIONPACKDIR}/${IOQ3_UI} ]; then
|
||||
IOQ3_MP_UI_ARCHS="${BUILT_PRODUCTS_DIR}/${MISSIONPACKDIR}/${IOQ3_UI} ${IOQ3_MP_UI_ARCHS}"
|
||||
fi
|
||||
|
||||
#echo "valid arch: ${ARCH}"
|
||||
done
|
||||
|
@ -272,9 +258,6 @@ echo ""
|
|||
if [ ! -d ${BUILT_PRODUCTS_DIR}/${EXECUTABLE_FOLDER_PATH}/$BASEDIR ]; then
|
||||
mkdir -p ${BUILT_PRODUCTS_DIR}/${EXECUTABLE_FOLDER_PATH}/$BASEDIR || exit 1;
|
||||
fi
|
||||
if [ ! -d ${BUILT_PRODUCTS_DIR}/${EXECUTABLE_FOLDER_PATH}/$MISSIONPACKDIR ]; then
|
||||
mkdir -p ${BUILT_PRODUCTS_DIR}/${EXECUTABLE_FOLDER_PATH}/$MISSIONPACKDIR || exit 1;
|
||||
fi
|
||||
if [ ! -d ${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH} ]; then
|
||||
mkdir -p ${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH} || exit 1;
|
||||
fi
|
||||
|
@ -292,9 +275,9 @@ echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>
|
|||
<key>CFBundleExecutable</key>
|
||||
<string>${EXECUTABLE_NAME}</string>
|
||||
<key>CFBundleIconFile</key>
|
||||
<string>quake3_flat</string>
|
||||
<string>quake3</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>org.ioquake.${PRODUCT_NAME}</string>
|
||||
<string>com.rq3.${PRODUCT_NAME}</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundleName</key>
|
||||
|
@ -312,7 +295,7 @@ echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>
|
|||
<key>LSMinimumSystemVersion</key>
|
||||
<string>${MACOSX_DEPLOYMENT_TARGET}</string>
|
||||
<key>NSHumanReadableCopyright</key>
|
||||
<string>QUAKE III ARENA Copyright © 1999-2000 id Software, Inc. All rights reserved.</string>
|
||||
<string>Reaction Copyright © 2000-2012 Boomstick Studios.</string>
|
||||
<key>NSPrincipalClass</key>
|
||||
<string>NSApplication</string>
|
||||
</dict>
|
||||
|
@ -365,11 +348,3 @@ action ${BUNDLEBINDIR}/${BASEDIR}/${UI_NAME} "${IOQ3_UI_ARCHS}"
|
|||
symlinkArch "${CGAME}" "${CGAME}" "" "${BUNDLEBINDIR}/${BASEDIR}"
|
||||
symlinkArch "${GAME}" "${GAME}" "" "${BUNDLEBINDIR}/${BASEDIR}"
|
||||
symlinkArch "${UI}" "${UI}" "" "${BUNDLEBINDIR}/${BASEDIR}"
|
||||
|
||||
# missionpack
|
||||
action ${BUNDLEBINDIR}/${MISSIONPACKDIR}/${CGAME_NAME} "${IOQ3_MP_CGAME_ARCHS}"
|
||||
action ${BUNDLEBINDIR}/${MISSIONPACKDIR}/${GAME_NAME} "${IOQ3_MP_GAME_ARCHS}"
|
||||
action ${BUNDLEBINDIR}/${MISSIONPACKDIR}/${UI_NAME} "${IOQ3_MP_UI_ARCHS}"
|
||||
symlinkArch "${CGAME}" "${CGAME}" "" "${BUNDLEBINDIR}/${MISSIONPACKDIR}"
|
||||
symlinkArch "${GAME}" "${GAME}" "" "${BUNDLEBINDIR}/${MISSIONPACKDIR}"
|
||||
symlinkArch "${UI}" "${UI}" "" "${BUNDLEBINDIR}/${MISSIONPACKDIR}"
|
||||
|
|
Loading…
Reference in a new issue