Permalink
Browse files

Added nuke task to build installer packages: "nuke installer".

  • Loading branch information...
1 parent 8e46f57 commit 73565290b91d6355be62f88e143f191b2cc04777 Tim Burks committed Sep 27, 2007
Showing with 73 additions and 0 deletions.
  1. +17 −0 Nukefile
  2. +10 −0 pkg/Description.plist
  3. +46 −0 pkg/Info.plist
View
@@ -101,3 +101,20 @@
(SH "mkdir dmg; cp -Rp '#{@framework}.framework' dmg")
(SH "hdiutil create -srcdir dmg '#{@framework}.dmg' -volname '#{@framework}'")
(SH "rm -rf dmg"))
+
+(task "installer" => "framework" is
+ (SH "sudo rm -rf package dmg Nu.dmg")
+ (SH "mkdir -p package/Library/Frameworks")
+ (SH "mkdir -p package/usr/local/bin")
+ (SH "mkdir -p package/usr/local/share")
+ (SH "cp -pRfv #{@framework}.framework package/Library/Frameworks/#{@framework}.framework")
+ (SH "cp -pRfv share/nu package/usr/local/share")
+ (SH "cp -pRfv examples package/usr/local/share/nu")
+ (SH "cp nush package/usr/local/bin")
+ (SH "cp tools/* package/usr/local/bin")
+ (SH "sudo chown -R root package")
+ (SH "sudo chgrp -R admin package")
+ (SH "/Developer/Tools/packagemaker -build -f package -p Nu.pkg -d pkg/Description.plist -i pkg/Info.plist")
+ (SH "mkdir dmg; mv Nu.pkg dmg")
+ (SH "hdiutil create -srcdir dmg Nu.dmg -volname Nu")
+ (SH "sudo rm -rf dmg package"))
View
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>IFPkgDescriptionDescription</key>
+ <string>The Nu programming language</string>
+ <key>IFPkgDescriptionTitle</key>
+ <string>Nu</string>
+</dict>
+</plist>
View
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>CFBundleGetInfoString</key>
+ <string>1.0, neontology</string>
+ <key>CFBundleIdentifier</key>
+ <string>com.neontology.nu.package</string>
+ <key>CFBundleShortVersionString</key>
+ <string>1.0</string>
+ <key>IFMajorVersion</key>
+ <integer>1</integer>
+ <key>IFMinorVersion</key>
+ <integer>0</integer>
+ <key>IFPkgFlagAllowBackRev</key>
+ <false/>
+ <key>IFPkgFlagAuthorizationAction</key>
+ <string>AdminAuthorization</string>
+ <key>IFPkgFlagBackgroundAlignment</key>
+ <string>topleft</string>
+ <key>IFPkgFlagBackgroundScaling</key>
+ <string>none</string>
+ <key>IFPkgFlagDefaultLocation</key>
+ <string>/</string>
+ <key>IFPkgFlagFollowLinks</key>
+ <true/>
+ <key>IFPkgFlagInstallFat</key>
+ <false/>
+ <key>IFPkgFlagInstalledSize</key>
+ <integer>2608</integer>
+ <key>IFPkgFlagIsRequired</key>
+ <false/>
+ <key>IFPkgFlagOverwritePermissions</key>
+ <false/>
+ <key>IFPkgFlagRelocatable</key>
+ <false/>
+ <key>IFPkgFlagRestartAction</key>
+ <string>NoRestart</string>
+ <key>IFPkgFlagRootVolumeOnly</key>
+ <false/>
+ <key>IFPkgFlagUpdateInstalledLanguages</key>
+ <false/>
+ <key>IFPkgFormatVersion</key>
+ <real>0.10000000149011612</real>
+</dict>
+</plist>

0 comments on commit 7356529

Please sign in to comment.