Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added script to build the installer from the command line and a requi…
…red file
- Loading branch information
Showing
3 changed files
with
65 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?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>CFBundleIdentifier</key> | ||
<string>@BUNDLE@</string> | ||
<key>IFPkgFlagAllowBackRev</key> | ||
<false/> | ||
<key>IFPkgFlagAuthorizationAction</key> | ||
<string>RootAuthorization</string> | ||
<key>IFPkgFlagDefaultLocation</key> | ||
<string>@INSTALLDIR@</string> | ||
<key>IFPkgFlagFollowLinks</key> | ||
<true/> | ||
<key>IFPkgFlagInstallFat</key> | ||
<false/> | ||
<key>IFPkgFlagIsRequired</key> | ||
<false/> | ||
<key>IFPkgFlagOverwritePermissions</key> | ||
<false/> | ||
<key>IFPkgFlagRelocatable</key> | ||
<false/> | ||
<key>IFPkgFlagRestartAction</key> | ||
<string>NoRestart</string> | ||
<key>IFPkgFlagRootVolumeOnly</key> | ||
<true/> | ||
<key>IFPkgFlagUpdateInstalledLanguages</key> | ||
<false/> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#/bin/sh -x | ||
# | ||
# Script to create the JRuby mac installer from the command line. It takes a while, be patient my friend. | ||
# | ||
# It needs two arguments from the command line: | ||
# | ||
# $1: the jruby's distribution directory | ||
# $2: the jruby's version | ||
# | ||
|
||
jruby_dist=$1 | ||
jruby_version=$2 | ||
|
||
unzip $jruby_dist/jruby-bin-$jruby_version.zip -d .; # unpacking jruby.zip | ||
mv jruby-$jruby_version jruby_dist; | ||
|
||
find . -type f -name .DS_Store -print0 | xargs -0 rm; # removing .DS_Store files | ||
|
||
sudo chown -R root:wheel jruby_dist; # we have to already set the privileges that the contents need after the installation | ||
|
||
/Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker -build -v -f . -doc JRuby-installer.pmdoc -p $jruby_dist/JRuby.pkg -i Info.plist; | ||
|
||
sudo rm -rf jruby_dist; |