diff --git a/sdk/jdks/build-osx-zip.sh b/sdk/jdks/build-osx-zip.sh new file mode 100755 index 000000000..cf1051901 --- /dev/null +++ b/sdk/jdks/build-osx-zip.sh @@ -0,0 +1,8 @@ +#!/bin/sh +#(c) jMonkeyEngine.com +#Author Normen Hansen +set -e +rm -rf jdk-macosx.zip +cp -r local/jdk7u11-macosx ./jdk +zip -9 -r -y ./jdk-macosx.zip ./jdk +rm -rf jdk diff --git a/sdk/jdks/build-package.sh b/sdk/jdks/build-package.sh new file mode 100755 index 000000000..e8b49ec2e --- /dev/null +++ b/sdk/jdks/build-package.sh @@ -0,0 +1,48 @@ +#!/bin/sh +set -e +#(c) jMonkeyEngine.com +#This script creates SFX binaries of the JDK for the specified platform +#Author Normen Hansen + +#gather options +os="$1" +source="$2" +if [ -z "$1" ]; then + echo "No platform supplied" + echo "Specify a platform like macosx, windows-x86, linux-x64 and a source like /path/to/jdk/home" + echo "If no source is specified, local/jdk7u11-platform will be used" + exit 1 +fi +if [ -z "$2" ]; then + source="local/jdk7u11-$os" +fi +if [ ! -d "$source" ]; then + echo "Source JDK directory $source was not found, specify another source folder as second parameter or copy the needed JDK to $source" + exit 1 +fi +unzipsfxname="unzipsfx/unzipsfx-$os" +if [ ! -f "$unzipsfxname" ]; then + echo "No unzipsfx for platform $os found at $unzipsfxname, cannot continue" + exit 1 +fi +suffix="bin" +if [[ "$os" == *"windows"* ]]; then + suffix="exe" +fi +name="jdk-$os.$suffix" + +echo "Creating SFX JDK package $name for $os with source $source." + +#code logic +rm -rf $name +cp -r $source ./jdk_tmp +cd jdk_tmp/jre +pack200 -J-Xmx1024m lib/rt.jar.pack.gz lib/rt.jar +rm -rf lib/rt.jar +cd .. +zip -9 -r -y ../jdk_tmp_sfx.zip . +cd .. +cat $unzipsfxname jdk_tmp_sfx.zip > $name +chmod +x $name +rm -rf jdk_tmp +rm -rf jdk_tmp_sfx.zip diff --git a/sdk/jdks/unzipsfx/unzipsfx-linux-x64 b/sdk/jdks/unzipsfx/unzipsfx-linux-x64 new file mode 100755 index 000000000..c1335404d Binary files /dev/null and b/sdk/jdks/unzipsfx/unzipsfx-linux-x64 differ diff --git a/sdk/jdks/unzipsfx/unzipsfx-linux-x86 b/sdk/jdks/unzipsfx/unzipsfx-linux-x86 new file mode 100755 index 000000000..579225a11 Binary files /dev/null and b/sdk/jdks/unzipsfx/unzipsfx-linux-x86 differ diff --git a/sdk/jdks/unzipsfx/unzipsfx-macosx b/sdk/jdks/unzipsfx/unzipsfx-macosx new file mode 100755 index 000000000..96f54c73e Binary files /dev/null and b/sdk/jdks/unzipsfx/unzipsfx-macosx differ diff --git a/sdk/jdks/unzipsfx/unzipsfx-windows-x64 b/sdk/jdks/unzipsfx/unzipsfx-windows-x64 new file mode 100755 index 000000000..63606e9cf Binary files /dev/null and b/sdk/jdks/unzipsfx/unzipsfx-windows-x64 differ diff --git a/sdk/jdks/unzipsfx/unzipsfx-windows-x86 b/sdk/jdks/unzipsfx/unzipsfx-windows-x86 new file mode 100755 index 000000000..63606e9cf Binary files /dev/null and b/sdk/jdks/unzipsfx/unzipsfx-windows-x86 differ diff --git a/sdk/jdks/versions b/sdk/jdks/versions new file mode 100644 index 000000000..214c8dc25 --- /dev/null +++ b/sdk/jdks/versions @@ -0,0 +1,5 @@ +MacOSX: 1.7u11 +Win32: 1.7u11 +Win64: 1.7u11 +Linux32: 1.7u11 +Linux64: 1.7u11