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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines