Skip to content

Commit

Permalink
Added script to build the installer from the command line and a requi…
Browse files Browse the repository at this point in the history
…red file
  • Loading branch information
calavera committed Jan 7, 2010
1 parent 719454a commit 3e5ba42
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 3 deletions.
30 changes: 30 additions & 0 deletions Info.plist
@@ -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>
15 changes: 12 additions & 3 deletions README.txt
Expand Up @@ -2,11 +2,20 @@ Mac package installer for JRuby.

Follow this steps to build the installer:

1. Open JRuby-installer.pmdoc with PackageMaker that's bundled with The Apple Development Tools.

2. Put the JRuby distribution that you want to package under the directory "jruby_dist".
From PackageMaker, the application:

1. Open JRuby-installer.pmdoc with PackageMaker that's bundled with The Apple Development Tools.

2. Put the JRuby distribution that you want to package under the directory "jruby_dist".

3. Build the installer.


From the command line:

run ./build.sh JRUBY_DIST_DIRECTORY JRUBY_VERSION

3. Build the installer.


TODO:
Expand Down
23 changes: 23 additions & 0 deletions build.sh
@@ -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;

0 comments on commit 3e5ba42

Please sign in to comment.