#!/bin/sh umask 022 if :; then export EXE_VER=A$(printf "%08x" $(( $(date +%s) - 1325129120))) echo "$EXE_VER" >dist/exe_ver else read EXE_VER dist/"$dist".bin chmod 755 dist/"$dist".bin done rm -f urlader.exe # linux 'wants' .tar.gz for arch in x86 amd64; do ( cd dist || exit ln -f linux-$arch.bin deliantra-gnu-linux-$arch tar cf deliantra-gnu-linux-$arch.tar deliantra-gnu-linux-$arch rm -f deliantra-gnu-linux-$arch gzip -9vf --rsyncable deliantra-gnu-linux-$arch.tar mv deliantra-gnu-linux-$arch.tar.gz bin ) || exit done # windows is just the exe ln -f dist/windows-x86.bin dist/bin/deliantra.exe # os x demands extra stuff rm -rf dist/dmg mkdir dist/dmg APP="Deliantra MORPG Client" mkdir dist/dmg/"$APP".app dist/dmg/"$APP".app/Contents dist/dmg/"$APP".app/Contents/MacOS dist/dmg/"$APP".app/Contents/Resources ln dist/darwin-x86.bin dist/dmg/"$APP".app/Contents/MacOS/run ln util/deliantra.icns dist/dmg/"$APP".app/Contents/Resources/ cat >dist/dmg/"$APP.app/Contents/Info.plist" < CFBundleDevelopmentRegion English CFBundleDisplayName Deliantra MORPG Client CFBundleExecutable run CFBundleGetInfoString Deliantra MORPG Client (www.deliantra.net) CFBundleIconFile deliantra.icns CFBundleIdentifier net.deliantra.client CFBundleInfoDictionaryVersion 6.0 CFBundleName Deliantra MORPG Client CFBundlePackageType APPL CFBundleShortVersionString $(date "+%Y.%m.%d.%H.%M.%S") CFBundleVersionString $(date "+%Y.%m.%d.%H.%M.%S") LSHasLocalizedDisplayName LSMinimumSystemVersion 10.5 NSAppleScriptEnabled NSHumanReadableCopyright Deliantra MORPG Client - Copyright 2008,2009,2010,2011,2012 The Deliantra Team EOF cat >dist/dmg/README.txt < Graphics tab and then go to Setup => Login, enter a nickname (no spaces, only ASCII letters supported) and a password, then hit Login. You can also install the client application by dragging it onto your harddisk or anywhere else, but it should play perfectly fine from the disk image. The game stores configuration settings, map data, music and other resources in a hidden directory called .deliantra in your home directory. The script "Reset Configuration" will reset the configuration and delete any downloaded resources. You can use this when you no longer want to play Deliantra, or when you have problems with the settings (window too large etc.). Unfortunately, Mac OS X has quite buggy OpenGL support: make sure your monitor cable is plugged in correctly when you can't go into fullscreen or when the graphics look broken. See http://www.deliantra.net/ for more info. EOF cat >dist/dmg/"Reset Configuration" <