Browse files

Nuke task to build disk image; also now build universal (ppc/i386).

  • Loading branch information...
1 parent ded56fa commit ddc168423ac5590bfceaff3ecdf0f2f3b30bf155 Tim Burks committed Dec 9, 2007
Showing with 9 additions and 0 deletions.
  1. +9 −0 Nukefile
View
9 Nukefile
@@ -10,6 +10,8 @@
(@resources << "resources/diyp3h_core_1up.pdf")
(@resources << "resources/PagePacker.sdef")
+(set @arch '("i386" "ppc"))
+
;; application description
(set @application "NuPagePacker")
(set @application_identifier "nu.programming.NuPagePacker")
@@ -50,3 +52,10 @@
(SH "mkdir -p '#{@application_dir}/Contents/Frameworks'")
(SH "ditto /Library/Frameworks/Nu.framework '#{@application_dir}/Contents/Frameworks/Nu.framework'")
(SH "install_name_tool -change 'Nu.framework/Versions/A/Nu' '@executable_path/../Frameworks/Nu.framework/Versions/A/Nu' '#{@application_dir}/Contents/MacOS/#{@application}'"))
+
+;; Build a disk image for distributing the application.
+(task "dmg" => "finalize" is
+ (SH "rm -rf '#{@application}.dmg' dmg")
+ (SH "mkdir dmg; cp -Rp '#{@application}.app' dmg")
+ (SH "hdiutil create -srcdir dmg '#{@application}.dmg' -volname '#{@application}'")
+ (SH "rm -rf dmg"))

0 comments on commit ddc1684

Please sign in to comment.