Status updates during MacOS X install.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1782 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -322,12 +322,14 @@ uqm_install_osx() {
|
||||
INSTROOT="$BUILD_WORK/The Ur-Quan Masters.app/Contents"
|
||||
|
||||
# Make directory structure
|
||||
echo "Creating directory structure..." >&2
|
||||
mkdirhier "$INSTROOT/MacOS" 0755
|
||||
mkdirhier "$INSTROOT/Frameworks" 0755
|
||||
mkdirhier "$INSTROOT/Resources/Launcher.nib" 0755
|
||||
mkdirhier "$INSTROOT/Resources/content/packages/addons" 0755
|
||||
|
||||
# Install misc. resources, icons, etc.
|
||||
echo "Installing miscellaneous resources..." >&2
|
||||
$SED "s/@@VERSION@@/$VERSION/g" src/res/darwin/Info.plist > \
|
||||
"$INSTROOT/Info.plist"
|
||||
cp src/res/darwin/PkgInfo "$INSTROOT"
|
||||
@@ -336,6 +338,7 @@ uqm_install_osx() {
|
||||
"$INSTROOT/Resources/Launcher.nib"
|
||||
|
||||
# Find Frameworks and copy them into the application.
|
||||
echo "Copying dependancy Frameworks..." >&2
|
||||
HEADERS="Ogg/Ogg.h SDL/SDL.h SDL_image/SDL_image.h Vorbis/vorbisfile.h"
|
||||
if [ "$uqm_SOUNDMODULE" = openal ]; then
|
||||
HEADERS="$HEADERS OpenAL/al.h"
|
||||
@@ -350,6 +353,7 @@ uqm_install_osx() {
|
||||
done
|
||||
|
||||
# Install game content (it should probably make a zipfile)
|
||||
echo "Creating base content package..." >&2
|
||||
cp content/starcon.key content/version "$INSTROOT/Resources/content"
|
||||
(cd content && \
|
||||
find . \( -name CVS -o -name packages \) -prune -o \
|
||||
@@ -358,17 +362,20 @@ uqm_install_osx() {
|
||||
-print | $SED 's/^..//' | zip -@ uqm-${VERSION}-prv-content.uqm)
|
||||
mv content/uqm-$VERSION-prv-content.uqm "$INSTROOT/Resources/content/packages"
|
||||
|
||||
echo "Creating voice content package..." >&2
|
||||
(cd content && \
|
||||
find . -name \*\[0-9\]\[0-9\]\[0-9\].ogg -print \
|
||||
| $SED 's/^..//' | zip -0 -@ uqm-${VERSION}-prv-voice.uqm)
|
||||
mv content/uqm-$VERSION-prv-voice.uqm "$INSTROOT/Resources/content/packages"
|
||||
|
||||
echo "Creating 3do music content package..." >&2
|
||||
(cd content && \
|
||||
find . -name \*.ogg -a \! -name \*\[0-9\]\[0-9\]\[0-9\].ogg \
|
||||
-print | $SED 's/^..//' | zip -0 -@ uqm-${VERSION}-prv-3domusic.uqm)
|
||||
mv content/uqm-$VERSION-prv-3domusic.uqm "$INSTROOT/Resources/content/packages"
|
||||
|
||||
# Install game binary (and rename it)
|
||||
echo "Installing executable..." >&2
|
||||
cp $uqm_NAME "$INSTROOT/MacOS/The Ur-Quan Masters"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user