RSS
Posted in code
ARTICLE 1 comment
05/2 2010

Creating .dmg Files with Adobe AIR 2 and OSX

Recently I needed to develop a method for creating password protected backups of my application’s data. The original idea was to create a password protected zip file which I could just do using /usr/bin/zip. Unfortunately, the OSX archiver utility cannot open password protected zip files, making it very difficult for users to actually open the zip files.

So after a bit of research I came across http://github.com/andreyvit/yoursway-create-dmg. This guy has created an awesome little shell script that allows you to create .dmg files with pretty backgrounds and all sorts of other things. I forked it here so that I could add the ability to set a password. And then I just execute the shell file using the NativeProcess API built in to Adobe AIR 2. Here is the javascript:

Share

digg reddit facebook twitter google 
  1. Track comments via RSS 2.0 feed. Feel free to post the comment, or trackback from your web site.

  2. 05/4 2010

    No one cares about you. <3