Maybe this is just my Friday evening brain speaking, and I also am
sure there has been discussion on this (couldn't find it), but....
How are users installing over Apple's Java 1.6, which has a bundle
version of 13.8.5 (in the case of a 10.6.8 machine I'm currently
looking at)? I was considering using an installcheck_script to read
this value, and passing if it was greater than 10.0.
On Wed, Jan 30, 2013 at 8:10 AM, <si...@ifixit.no
> Something I wrote today to fix the package instead of doing custom version
> export PATH
> WORKDIR=/tmp/modpkg-`date +%s`
> OUTDIR=`dirname "$1"`/modpkg
> PKGNAME=`basename "$1"`
> pkgutil --expand "$1" "$WORKDIR"
> # EDIT US
> perl -pi -e 's/(identifier=\"com\.oracle\.jre\"
> mkdir "$OUTDIR"
> pkgutil --flatten "$WORKDIR" "$OUTDIR"/"$PKGNAME"
> rm -r $WORKDIR
> Copy/paste to a file and call it whatever, mine is currently named
> chmod +x java-applet.sh
> ./java-applet.sh /Users/simen/Downloads/Java\ 7\ Update\ 11.pkg 7.11
> We send the package as argument 1 and the wanted version as argument 2. The
> script will then make a modified/fixed version of the pkg to the same folder
> as the original inside a folder called modpkg.
> Use it if you want to :) Easy to modify new versions when they get released.
> Best wishes, Simen
> You received this message because you are subscribed to the Google Groups
> "munki-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to munki-dev+...@googlegroups.com
> For more options, visit https://groups.google.com/groups/opt_out