ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/Deliantra-Client/makebin.osx
(Generate patch)

Comparing deliantra/Deliantra-Client/makebin.osx (file contents):
Revision 1.2 by root, Wed Aug 20 00:46:12 2008 UTC vs.
Revision 1.8 by root, Mon Sep 29 03:05:00 2008 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines