Skip to content

Commit

Permalink
Added nuke task to build installer packages: "nuke installer".
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Burks committed Sep 27, 2007
1 parent 8e46f57 commit 7356529
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Nukefile
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
10 changes: 10 additions & 0 deletions pkg/Description.plist
Original file line number Diff line number Diff line change
@@ -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>
46 changes: 46 additions & 0 deletions pkg/Info.plist
Original file line number Diff line number Diff line change
@@ -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.