Explorar el Código

App Bundle also runs setup if needed.

Thomas Buck hace 11 años
padre
commit
c8554e9c20
Se han modificado 3 ficheros con 25 adiciones y 6 borrados
  1. 8
    6
      Makefile
  2. 0
    0
      data/custom.cfg
  3. 17
    0
      mac_dist/OpenRaider

+ 8
- 6
Makefile Ver fichero

@@ -116,19 +116,21 @@ targets: $(TARGETS)
116 116
 
117 117
 bundle: release
118 118
 	mkdir -p bin/OpenRaider.app/Contents/MacOS
119
-	mkdir -p bin/OpenRaider.app/Contents/Resources
119
+	mkdir -p bin/OpenRaider.app/Contents/Resources/defaults
120 120
 	mkdir -p bin/OpenRaider.app/Contents/Frameworks
121 121
 	cp mac_dist/Info.plist bin/OpenRaider.app/Contents/Info.plist
122 122
 	cp mac_dist/openraider.icns bin/OpenRaider.app/Contents/Resources/openraider.icns
123
-	cp bin/release/OpenRaider bin/OpenRaider.app/Contents/MacOS/OpenRaider
123
+	cp mac_dist/OpenRaider bin/OpenRaider.app/Contents/MacOS/OpenRaider
124
+	cp bin/release/OpenRaider bin/OpenRaider.app/Contents/MacOS/OpenRaider-bin
125
+	cp data/* bin/OpenRaider.app/Contents/Resources/defaults/
124 126
 	cp /opt/local/lib/libalut.0.1.0.dylib bin/OpenRaider.app/Contents/Frameworks/libalut.0.1.0.dylib
125 127
 	cp /opt/local/lib/libSDL_ttf-2.0.0.dylib bin/OpenRaider.app/Contents/Frameworks/libSDL_ttf-2.0.0.dylib
126 128
 	cp /opt/local/lib/libz.1.dylib bin/OpenRaider.app/Contents/Frameworks/libz.1.dylib
127 129
 	cp /opt/local/lib/libSDL-1.2.0.dylib bin/OpenRaider.app/Contents/Frameworks/libSDL-1.2.0.dylib
128
-	install_name_tool -change /opt/local/lib/libalut.0.1.0.dylib @executable_path/../Frameworks/libalut.0.1.0.dylib bin/OpenRaider.app/Contents/MacOS/OpenRaider
129
-	install_name_tool -change /opt/local/lib/libSDL_ttf-2.0.0.dylib @executable_path/../Frameworks/libSDL_ttf-2.0.0.dylib bin/OpenRaider.app/Contents/MacOS/OpenRaider
130
-	install_name_tool -change /opt/local/lib/libz.1.dylib @executable_path/../Frameworks/libz.1.dylib bin/OpenRaider.app/Contents/MacOS/OpenRaider
131
-	install_name_tool -change /opt/local/lib/libSDL-1.2.0.dylib @executable_path/../Frameworks/libSDL-1.2.0.dylib bin/OpenRaider.app/Contents/MacOS/OpenRaider
130
+	install_name_tool -change /opt/local/lib/libalut.0.1.0.dylib @executable_path/../Frameworks/libalut.0.1.0.dylib bin/OpenRaider.app/Contents/MacOS/OpenRaider-bin
131
+	install_name_tool -change /opt/local/lib/libSDL_ttf-2.0.0.dylib @executable_path/../Frameworks/libSDL_ttf-2.0.0.dylib bin/OpenRaider.app/Contents/MacOS/OpenRaider-bin
132
+	install_name_tool -change /opt/local/lib/libz.1.dylib @executable_path/../Frameworks/libz.1.dylib bin/OpenRaider.app/Contents/MacOS/OpenRaider-bin
133
+	install_name_tool -change /opt/local/lib/libSDL-1.2.0.dylib @executable_path/../Frameworks/libSDL-1.2.0.dylib bin/OpenRaider.app/Contents/MacOS/OpenRaider-bin
132 134
 
133 135
 bundle-image: bundle
134 136
 	hdiutil create -size 32m -fs HFS+ -volname "OpenRaider" bin/tmp.dmg

+ 0
- 0
data/custom.cfg Ver fichero


+ 17
- 0
mac_dist/OpenRaider Ver fichero

@@ -0,0 +1,17 @@
1
+#!/bin/sh
2
+cd `dirname $0`
3
+if [ ! -d "~/.OpenRaider" ]; then
4
+    echo "Setting up OpenRaider for user $USER..."
5
+    mkdir -p ~/.OpenRaider
6
+    cp ../Resources/defaults/OpenRaider.init ~/.OpenRaider/
7
+    cp ../Resources/defaults/custom.cfg ~/.OpenRaider/
8
+    mkdir -p ~/.OpenRaider/paks
9
+    mkdir -p ~/.OpenRaider/music
10
+    mkdir -p ~/.OpenRaider/data
11
+    mkdir -p ~/.OpenRaider/sshots
12
+    cp ../Resources/defaults/*.tga ~/.OpenRaider/data
13
+    cp ../Resources/defaults/*.wav ~/.OpenRaider/data
14
+    cp ../Resources/defaults/*.ttf ~/.OpenRaider/data
15
+    echo "DONE"
16
+fi
17
+./OpenRaider-bin

Loading…
Cancelar
Guardar