I don't know if anyone has done something like this yet...
Or if anyone even cares, but anyway:
Since v0.31.xx Mac OS X builds aren't shine .apps anymore, but simple executables.
I'd like DF on the Mac a little more Mac-like, and thus:
The
Dwarf Fortress
Mac OS X App
ReBundler
ShellScript!
v0.07
... which means a shellscript that converts the standard Mac build to an .app as it was in 0.28.xx builds (and a little better!)!! I don't know if I'm allowed to redistribute rebundled versions, thus I made a script that does the rebundling for you (well, and me). The whole thing is actually pretty ugly, but it works! It certainly lacks a cool name, but who cares (well I do, but not now!)
What you need:
1.) The build you actually want to use.
2.) Version
0.28.181.40d, since it was the last that was an .app.
3.) The script!
Let's see:
Ad 1.)
For
PPC Macs the last working version is
0.31.12, which is
here!Btw. can we get PPC builds of the newer versions, please?
Newer versions only work on
Intel Macs, thus you might want to use the latest, which is - as of now -
0.31.16.
Get it
here!If the newest version does not work though you are on an Intel Mac, you can try
0.31.12 from above. This seems to be the last version working on all Macs.
Games you already played should work, too and your saves should be preserved. (A backup might be a good idea nevertheless!)
Ad 2.)
Click!Ad 3.)
Clack!
What do we do with this?
a) Put those 3 files into a separate directory and
b) Unpack them! (Hint: Doubleclick!)
c) You should now have 2 folders "Dwarf Fortress 0.28.181.40d" and "df_osx" and a file called "rebundler.sh"
If not ...errm... write a comment below!?
d) Now we need the Terminal. (Nota bene: The way to Mac-friendliness is NOT Mac-friendly!)
It should be somewhere in
/Applications/Utilities/ or use Spotlight to find it.
e) Go to where you unpacked the files. I'd suppose, this might go like this:
cd Desktop
cd temporaryfolderijustmade
ls
If
ls shows the files/folders from c) you're good.
f) Now we need to make sure the script is executable. (This might be redundant, since
tar preserves permissions, but it won't hurt either...)
chmod +x rebundler.sh
Beware! The files you unpacked in c) will be gone inside the new bundle, once you do this next step. If you want to use a game you are currently playing do yourself a favour and make a backup! In principle nothing should be lost, but who knows ...
g) Finally, type:
./rebundler.sh
To execute the script.
This will take half a second (+15 seconds as security measure) and present you a new directory called "newDF", which holds your shiny new .app! You can drop the
dwarf-head into your
/Applications, as all necessary files are inside the bundle (unlike the older releases*...)
If you ever happen to look for your savefiles, they are inside the bundle, too.
You can get inside by right-clicking/ctrl-clicking the icon and use "Show Package Contents". From there navigate to
Dwarf Fortress.app/Contents/Resources/workaround/data/saveIf anyone has problems or suggestions or ...whatever... just ask!
*Does anybody know how the data/raw folders are located? I had to do a workaround - an .app inside the .app you actually use - to get those inside the bundle. This could use some cleaning!
Preliminary Changelog:
v0.01 - Initial release
v0.02 - Fix for
PlistBuddyless Macs and missing
locate-db. (
Thanks to
IAmThad)
v0.03 - Gives feedback now. Does some sanity checks.
v0.04 - Waits for 15 seconds so you can stop the script in case you want/have to.
v0.05 - New About Box. Hope that's good enough ...
v0.06 - Now writes a logfile. Please upload it, if it asks you to!
v0.07 - Added some info from SystemProfiler about the machine type to log.