SDK NBI Installer:
- Add JDK packaging tools git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10148 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
97ae6fcebc
commit
1b997964ad
8
sdk/jdks/build-osx-zip.sh
Executable file
8
sdk/jdks/build-osx-zip.sh
Executable file
@ -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
|
48
sdk/jdks/build-package.sh
Executable file
48
sdk/jdks/build-package.sh
Executable file
@ -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
|
BIN
sdk/jdks/unzipsfx/unzipsfx-linux-x64
Executable file
BIN
sdk/jdks/unzipsfx/unzipsfx-linux-x64
Executable file
Binary file not shown.
BIN
sdk/jdks/unzipsfx/unzipsfx-linux-x86
Executable file
BIN
sdk/jdks/unzipsfx/unzipsfx-linux-x86
Executable file
Binary file not shown.
BIN
sdk/jdks/unzipsfx/unzipsfx-macosx
Executable file
BIN
sdk/jdks/unzipsfx/unzipsfx-macosx
Executable file
Binary file not shown.
BIN
sdk/jdks/unzipsfx/unzipsfx-windows-x64
Executable file
BIN
sdk/jdks/unzipsfx/unzipsfx-windows-x64
Executable file
Binary file not shown.
BIN
sdk/jdks/unzipsfx/unzipsfx-windows-x86
Executable file
BIN
sdk/jdks/unzipsfx/unzipsfx-windows-x86
Executable file
Binary file not shown.
5
sdk/jdks/versions
Normal file
5
sdk/jdks/versions
Normal file
@ -0,0 +1,5 @@
|
||||
MacOSX: 1.7u11
|
||||
Win32: 1.7u11
|
||||
Win64: 1.7u11
|
||||
Linux32: 1.7u11
|
||||
Linux64: 1.7u11
|
Loading…
x
Reference in New Issue
Block a user