initial OS X app building stuff. May be broken.
git-svn-id: svn://svn.icculus.org/netradiant/trunk@176 61c419a2-8eb2-4b30-bcec-8cead039b335
This commit is contained in:
parent
ccf6f80900
commit
f1136218cf
6
Makefile
6
Makefile
|
|
@ -191,7 +191,10 @@ ifeq ($(OS),Darwin)
|
||||||
# workaround: we have no "ldd" for OS X, so...
|
# workaround: we have no "ldd" for OS X, so...
|
||||||
LDD =
|
LDD =
|
||||||
|
|
||||||
#$(error Unsupported build OS: $(OS) - please complete the Darwin support in this Makefile and submit a patch)
|
INSTALLDIR_BASE := $(INSTALLDIR)
|
||||||
|
INSTALLDIR := $(INSTALLDIR_BASE)/NetRadiant.app/Contents/MacOS/install
|
||||||
|
endif
|
||||||
|
|
||||||
else
|
else
|
||||||
|
|
||||||
$(error Unsupported build OS: $(OS))
|
$(error Unsupported build OS: $(OS))
|
||||||
|
|
@ -935,6 +938,7 @@ $(INSTALLDIR)/heretic2/h2data.$(EXE): \
|
||||||
install-data: binaries
|
install-data: binaries
|
||||||
$(MKDIR) $(INSTALLDIR)/games
|
$(MKDIR) $(INSTALLDIR)/games
|
||||||
$(FIND) $(INSTALLDIR)/ -name .svn -exec $(RM_R) {} \; -prune
|
$(FIND) $(INSTALLDIR)/ -name .svn -exec $(RM_R) {} \; -prune
|
||||||
|
[ "$(OS)" != "Darwin" ] || $(CP_R) setup/data/osx/NetRadiant.app/* $(INSTALLDIR_BASE)/NetRadiant.app/
|
||||||
set -ex; \
|
set -ex; \
|
||||||
for GAME in games/*; do \
|
for GAME in games/*; do \
|
||||||
if [ -d "$$GAME/tools" ]; then \
|
if [ -d "$$GAME/tools" ]; then \
|
||||||
|
|
|
||||||
18
setup/data/osx/NetRadiant.app/Contents/Info.plist
Normal file
18
setup/data/osx/NetRadiant.app/Contents/Info.plist
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
<?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>CFBundleDevelopmentRegion</key>
|
||||||
|
<string>English</string>
|
||||||
|
<key>CFBundleExecutable</key>
|
||||||
|
<string>netradiant.sh</string>
|
||||||
|
<key>CFBundleIconFile</key>
|
||||||
|
<string>NetRadiant</string>
|
||||||
|
<key>CFBundlePackageType</key>
|
||||||
|
<string>APPL</string>
|
||||||
|
<key>CFBundleSignature</key>
|
||||||
|
<string>????</string>
|
||||||
|
<key>CFBundleVersion</key>
|
||||||
|
<string>1.5.0</string>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
||||||
10
setup/data/osx/NetRadiant.app/Contents/MacOS/netradiant.sh
Executable file
10
setup/data/osx/NetRadiant.app/Contents/MacOS/netradiant.sh
Executable file
|
|
@ -0,0 +1,10 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
MY_DIRECTORY="${0%/*}" # cut off the script name
|
||||||
|
MY_DIRECTORY="${MY_DIRECTORY%/*}" # cut off MacOS
|
||||||
|
MY_DIRECTORY="${MY_DIRECTORY%/*}" # cut off Contents
|
||||||
|
|
||||||
|
#export DYLD_LIBRARY_PATH="$MY_DIRECTORY/Contents/MacOS"
|
||||||
|
|
||||||
|
cd "$MY_DIRECTORY/Contents/MacOS/NetRadiant/install"
|
||||||
|
exec /usr/bin/open-x11 ./radiant.ppc
|
||||||
1
setup/data/osx/NetRadiant.app/Contents/PkgInfo
Normal file
1
setup/data/osx/NetRadiant.app/Contents/PkgInfo
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
APPL????
|
||||||
BIN
setup/data/osx/NetRadiant.app/Contents/Resources/English.lproj/InfoPlist.strings
Executable file
BIN
setup/data/osx/NetRadiant.app/Contents/Resources/English.lproj/InfoPlist.strings
Executable file
Binary file not shown.
BIN
setup/data/osx/NetRadiant.app/Contents/Resources/NetRadiant.icns
Normal file
BIN
setup/data/osx/NetRadiant.app/Contents/Resources/NetRadiant.icns
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user