… | |
… | |
161 | rm -rf dmg |
161 | rm -rf dmg |
162 | mkdir dmg |
162 | mkdir dmg |
163 | |
163 | |
164 | mv "$APP.app" dmg/ |
164 | mv "$APP.app" dmg/ |
165 | |
165 | |
|
|
166 | cat >dmg/README.txt <<EOF |
|
|
167 | Hello! |
|
|
168 | |
|
|
169 | This disk image contains the Deliantra MORPG game client. |
|
|
170 | |
|
|
171 | To play it, simply double-click it, then select a good graphics resolution |
|
|
172 | in the Setup => Graphics tab and then go to Setup => Login, enter a nickname |
|
|
173 | (no spaces, only ASCII letters supported) and a password, then hit Login. |
|
|
174 | |
|
|
175 | You can also install the client application by dragging it onto your |
|
|
176 | harddisk or anywhere else, but it should play perfectly fine from the disk |
|
|
177 | image. |
|
|
178 | |
|
|
179 | The game stores configuration settings, map data, music and other resources |
|
|
180 | in a hidden directory called .deliantra in your home directory. |
|
|
181 | |
|
|
182 | The script "Reset Configuration" will reset the configuration and delete |
|
|
183 | any downloaded resources. You can use this when you no longer want to play |
|
|
184 | Deliantra, or when you have problems with the settings (window too large |
|
|
185 | etc.). |
|
|
186 | |
|
|
187 | Unfortunately, Mac OS X has quite buggy OpenGL support: make sure your |
|
|
188 | monitor cable is plugged in correctly when you can't go into fullscreen or |
|
|
189 | when the graphics look broken. |
|
|
190 | |
|
|
191 | See http://www.deliantra.net/ for more info. |
|
|
192 | |
|
|
193 | EOF |
|
|
194 | |
|
|
195 | cat >dmg/"Reset Configuration" <<EOF |
|
|
196 | #!/bin/sh |
|
|
197 | |
|
|
198 | rm -rf ~/.deliantra |
|
|
199 | |
|
|
200 | echo |
|
|
201 | echo |
|
|
202 | echo |
|
|
203 | echo |
|
|
204 | echo |
|
|
205 | echo Configuration/Cache Cleared |
|
|
206 | |
|
|
207 | EOF |
|
|
208 | chmod 755 dmg/"Reset Configuration" |
|
|
209 | |
166 | # now, the last third, putting all this into a dmg |
210 | # now, the last third, putting all this into a dmg |
167 | |
211 | |
|
|
212 | DMG="Deliantra_MORPG_Client-$VER".dmg |
|
|
213 | |
168 | hdiutil create -srcfolder dmg -volname "Deliantra MORPG Client" -ov -format UDZO ~user/"Deliantra_MORPG_Client-$VER".dmg |
214 | hdiutil create -srcfolder dmg -volname "Deliantra MORPG Client" -ov -format UDZO ~user/"$DMG" |
169 | ls -l ~user/"Deliantra_MORPG_Client-$VER".dmg |
215 | ls -l ~user/"$DMG" |
170 | rm -rf dmg |
216 | rm -rf dmg |
171 | |
217 | |
|
|
218 | chmod 644 ~user/$DMG |
|
|
219 | echo http://data.plan9.de/"$DMG" |
|
|
220 | rsync -avPessh ~user/"$DMG" ruth:/var/www/data.plan9.de/. |
172 | |
221 | |
173 | |
222 | |
|
|
223 | |