1 | #!/bin/bash |
1 | #!/bin/bash |
2 | |
2 | |
3 | # Convert a gtk2-perl program to a standalone OS X binary |
3 | # Convert a gtk2-perl program to a standalone OS X binary |
|
|
4 | |
|
|
5 | # need to patch libSDL_image from /opt/local/lib/libjpeg.dylib to ./libjpeg.62.dylib |
4 | |
6 | |
5 | PERL=/opt/local |
7 | PERL=/opt/local |
6 | PERLLIB=/usr/lib/perl5 |
8 | PERLLIB=/usr/lib/perl5 |
7 | PANGO=1.6.0 |
|
|
8 | |
9 | |
9 | umask 022 |
10 | umask 022 |
10 | |
11 | |
11 | if false; then |
12 | if false; then |
12 | for mod in AnyEvent EV JSON-XS Deliantra Compress-LZF BDB; do |
13 | for mod in AnyEvent EV JSON-XS Deliantra Compress-LZF BDB; do |
… | |
… | |
161 | rm -rf dmg |
162 | rm -rf dmg |
162 | mkdir dmg |
163 | mkdir dmg |
163 | |
164 | |
164 | mv "$APP.app" dmg/ |
165 | mv "$APP.app" dmg/ |
165 | |
166 | |
|
|
167 | cat >dmg/README.txt <<EOF |
|
|
168 | Hello! |
|
|
169 | |
|
|
170 | This disk image contains the Deliantra MORPG game client. |
|
|
171 | |
|
|
172 | The client has been compiled for Intel systems only. |
|
|
173 | |
|
|
174 | The client uses a lot of right mouse button click pop-up menus, to emulate |
|
|
175 | a right-click with a mouse that has only one button, use ctrl-click. |
|
|
176 | |
|
|
177 | To play it, simply double-click it, then select a good graphics resolution |
|
|
178 | in the Setup => Graphics tab and then go to Setup => Login, enter a nickname |
|
|
179 | (no spaces, only ASCII letters supported) and a password, then hit Login. |
|
|
180 | |
|
|
181 | You can also install the client application by dragging it onto your |
|
|
182 | harddisk or anywhere else, but it should play perfectly fine from the disk |
|
|
183 | image. |
|
|
184 | |
|
|
185 | The game stores configuration settings, map data, music and other resources |
|
|
186 | in a hidden directory called .deliantra in your home directory. |
|
|
187 | |
|
|
188 | The script "Reset Configuration" will reset the configuration and delete |
|
|
189 | any downloaded resources. You can use this when you no longer want to play |
|
|
190 | Deliantra, or when you have problems with the settings (window too large |
|
|
191 | etc.). |
|
|
192 | |
|
|
193 | Unfortunately, Mac OS X has quite buggy OpenGL support: make sure your |
|
|
194 | monitor cable is plugged in correctly when you can't go into fullscreen or |
|
|
195 | when the graphics look broken. |
|
|
196 | |
|
|
197 | See http://www.deliantra.net/ for more info. |
|
|
198 | |
|
|
199 | EOF |
|
|
200 | |
|
|
201 | cat >dmg/"Reset Configuration" <<EOF |
|
|
202 | #!/bin/sh |
|
|
203 | |
|
|
204 | rm -rf ~/.deliantra |
|
|
205 | |
|
|
206 | echo |
|
|
207 | echo |
|
|
208 | echo |
|
|
209 | echo |
|
|
210 | echo |
|
|
211 | echo Configuration/Cache Cleared |
|
|
212 | |
|
|
213 | EOF |
|
|
214 | chmod 755 dmg/"Reset Configuration" |
|
|
215 | |
166 | # now, the last third, putting all this into a dmg |
216 | # now, the last third, putting all this into a dmg |
167 | |
217 | |
|
|
218 | DMG="Deliantra_MORPG_Client-$VER".dmg |
|
|
219 | |
168 | hdiutil create -srcfolder dmg -volname "Deliantra MORPG Client" -ov -format UDZO ~user/"Deliantra_MORPG_Client-$VER".dmg |
220 | hdiutil create -srcfolder dmg -volname "Deliantra MORPG Client" -ov -format UDZO ~user/"$DMG" |
169 | ls -l ~user/"Deliantra_MORPG_Client-$VER".dmg |
221 | ls -l ~user/"$DMG" |
170 | rm -rf dmg |
222 | rm -rf dmg |
171 | |
223 | |
|
|
224 | chmod 644 ~user/$DMG |
|
|
225 | echo http://data.plan9.de/"$DMG" |
|
|
226 | rsync -avPessh ~user/"$DMG" ruth:/var/www/data.plan9.de/. |
172 | |
227 | |
173 | |
228 | |
|
|
229 | |