From e8025f7925388b867c0ca5664be62a9d533877a0 Mon Sep 17 00:00:00 2001 From: "jihye424.kim" Date: Mon, 1 Feb 2016 16:36:22 +0900 Subject: [PATCH] build: check runtime bit of java in windows Change-Id: I1b4dcf0d4503fc3766fde2715636dd29d3ead220 Signed-off-by: jihye424.kim --- package/build.windows | 13 +++++++++++- package/pkginfo.manifest | 9 ++++++++- supplement/em-wrapper-config-64.xml | 40 +++++++++++++++++++++++++++++++++++++ supplement/em-wrapper-config.xml | 17 ++++++++++++---- 4 files changed, 73 insertions(+), 6 deletions(-) create mode 100644 supplement/em-wrapper-config-64.xml diff --git a/package/build.windows b/package/build.windows index 611c483..4ee6fa7 100755 --- a/package/build.windows +++ b/package/build.windows @@ -22,6 +22,7 @@ build() { prepare + SRCDIR=$MSYS_SRCDIR . $SRCDIR/package/build.common build_common @@ -30,7 +31,16 @@ build() LAUNCH4J_RUN=0 LAUNCH4J_NOT_FOUND=1 SKIP_EXE=2 - supplement/genExe.sh supplement/em-wrapper-config.xml + + case "${TARGET_OS}" in + "windows-32") + supplement/genExe.sh supplement/em-wrapper-config.xml + ;; + "windows-64") + supplement/genExe.sh supplement/em-wrapper-config-64.xml + ;; + esac + RET=$? if [ "$RET" = "$LAUNCH4J_NOT_FOUND" ]; then echo "Launch4j not found. Exit." @@ -57,6 +67,7 @@ build() # install install() { + SRCDIR=$MSYS_SRCDIR . $SRCDIR/package/build.common install_common } diff --git a/package/pkginfo.manifest b/package/pkginfo.manifest index 34b580d..61add7a 100644 --- a/package/pkginfo.manifest +++ b/package/pkginfo.manifest @@ -10,13 +10,20 @@ Install-dependency: emulator-common-lib, emulator-supplements Description: Tizen Emulator Manager Package: emulator-manager -OS: windows-32, windows-64 +OS: windows-32 Build-host-os: windows-32 Build-dependency: emulator-common-lib-dev, sdk-manager Install-dependency: emulator-common-lib, emulator-supplements Description: Tizen Emulator Manager Package: emulator-manager +OS: windows-64 +Build-host-os: windows-64 +Build-dependency: emulator-common-lib-dev, sdk-manager +Install-dependency: emulator-common-lib, emulator-supplements +Description: Tizen Emulator Manager + +Package: emulator-manager OS: macos-64 Build-host-os: macos-64 Build-dependency: emulator-common-lib-dev, sdk-manager diff --git a/supplement/em-wrapper-config-64.xml b/supplement/em-wrapper-config-64.xml new file mode 100644 index 0000000..badbb2a --- /dev/null +++ b/supplement/em-wrapper-config-64.xml @@ -0,0 +1,40 @@ + + + true + gui + emulator-manager.jar + ..\emulator-manager.exe + Emulator Manager + + + normal + http://www.oracle.com/technetwork/java/javase/downloads + + true + + ..\resource\res\em.ico + + org.tizen.emulator.manager.EmulatorManager + swt.jar + jsch-0.1.50.jar + protobuf.jar + + + + false + 1.7.0 + + preferJre + 64 + -Djna.nosys=true + + + An error occurred while starting the application. + This application was configured to use a bundled Java Runtime Environment but the runtime is missing or corrupted. + Tizen SDK requires an appropriate version of JRE (Java Runtime Environment) or JDK (Java Development Kit) and if you are using 64-bit Windows, 64-bit java is required. The version of your java may be lower than required or the bit version of java is not matched. + +Please update Java Runtime Environment to + The registry refers to a nonexistent Java Runtime Environment installation or the runtime is corrupted. + An application instance is already running. + + \ No newline at end of file diff --git a/supplement/em-wrapper-config.xml b/supplement/em-wrapper-config.xml index a02ec2c..1ea031f 100644 --- a/supplement/em-wrapper-config.xml +++ b/supplement/em-wrapper-config.xml @@ -4,11 +4,11 @@ gui emulator-manager.jar ..\emulator-manager.exe - + Emulator Manager normal - http://java.com/download + http://www.oracle.com/technetwork/java/javase/downloads true @@ -22,10 +22,19 @@ false - 1.6.0 + 1.7.0 preferJre - 64/32 + 32 -Djna.nosys=true + + An error occurred while starting the application. + This application was configured to use a bundled Java Runtime Environment but the runtime is missing or corrupted. + Tizen SDK requires an appropriate version of JRE (Java Runtime Environment) or JDK (Java Development Kit) and if you are using 64-bit Windows, 64-bit java is required. The version of your java may be lower than required or the bit version of java is not matched. + +Please update Java Runtime Environment to + The registry refers to a nonexistent Java Runtime Environment installation or the runtime is corrupted. + An application instance is already running. + -- 2.7.4