diff --git a/Info.plist b/Info.plist new file mode 100644 index 0000000..d964557 --- /dev/null +++ b/Info.plist @@ -0,0 +1,30 @@ + + + + + CFBundleIdentifier + @BUNDLE@ + IFPkgFlagAllowBackRev + + IFPkgFlagAuthorizationAction + RootAuthorization + IFPkgFlagDefaultLocation + @INSTALLDIR@ + IFPkgFlagFollowLinks + + IFPkgFlagInstallFat + + IFPkgFlagIsRequired + + IFPkgFlagOverwritePermissions + + IFPkgFlagRelocatable + + IFPkgFlagRestartAction + NoRestart + IFPkgFlagRootVolumeOnly + + IFPkgFlagUpdateInstalledLanguages + + + diff --git a/README.txt b/README.txt index 39614ac..2498bc2 100644 --- a/README.txt +++ b/README.txt @@ -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: diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..8ae2255 --- /dev/null +++ b/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;