This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Post Reply 
Thread Rating:
  • 6 Votes - 4.33 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Automated and official SVN builds
06-09-2010, 05:15 AM (This post was last modified: 06-09-2010 05:24 AM by TigerC10.)
Post: #6
RE: Automated and official SVN builds
(06-08-2010 10:29 PM)Orphis Wrote:  I meant doing a .app in a DMG file with an easy "move to app" thing. I don't know how it works yet but I'll soon figure it out.

Ah, this is probably not as easy to do with an auto-builder bot. To create a DMG go to...

Applications > Utilities > Disk Utility

Click on the "New Image" button at the top, and it'll ask you what to save it as. You can then "Save as" with whatever.dmg, then make sure you name the disk image properly. You'll want to set the size to a custom amount based on the size of the .app, just round up to whatever the next highest MB is and it'll be fine. I also recommend that you use the case-sensitive journaled format - but to each his own. The rest of the options can be left untouched. Make/save the image.

Now mount the DMG, and open up the disk image. It is customary to make a (hidden) directory named ".background" in the root of the image (on Mac, anything with a "." character in front is treated as "hidden"). Put the background picture there. Now from the View menu of Finder, choose "Show View Options". MAKE SURE that you click the "This window only" option in here. Then select it as a background in the "Show View Options". Using the rest of the "Show View Options" you can customize the looks of the icons and what not.

You can customize the icons inside a DMG (and on the DMG itself) by right clicking on it (or command clicking on it) and selecting "Get Info". At the top left will be a small area to drag and drop .icns files into for the icon. You may also be able to command+C and command+V the icon from the "Get Info" of a different one, but I haven't tried it.

As for making the little shortcut for the Applications directory, you can use the terminal to issue this command:
ln -s /Applications /Volumes/Your\ DMG\ Name

That'll create the applications shortcut to drag and drop into...

I believe from there you can unmount and distribute, but until the emulator gets to version 1.0 I don't think it's worth making a DMG. Furthermore, the DMG is akin to an "installer" in windows - so unless you're also creating a .exe wrapper for the JAR in the windows version AND wrapping all of THAT up into an .exe to install with... I don't think there's a need to go all the way to make a DMG for the auto-building bot. I'm sure this entire process can be done using a makefile, but eh... Doesn't seem worth it until it goes to version 1.0, you know what I mean?
Find all posts by this user
Quote this message in a reply
Post Reply 

Messages In This Thread
Automated and official SVN builds - Orphis - 05-20-2010, 04:47 PM
RE: Automated and official SVN builds - TigerC10 - 06-09-2010 05:15 AM

Forum Jump:

User(s) browsing this thread: 1 Guest(s)