From 18f18bf2cb215412403ad1583f5239ab122cb1b7 Mon Sep 17 00:00:00 2001 From: Cristian Maglie Date: Thu, 9 Mar 2017 15:12:13 +0200 Subject: [PATCH 1/2] JNA: try to avoid unzipping jnidispatch.dll from jar on Windows Normally if JNA doesn't find the jnidispatch.dll it tries to extract it from the jar into a temp folder and load from there. This is being restriscted on Microsoft Apps for the app-store and this commit prevents this behaviour. --- build/build.xml | 12 ++++++++++++ build/windows/launcher/config.xml | 3 +++ build/windows/launcher/config_debug.xml | 4 ++++ 3 files changed, 19 insertions(+) diff --git a/build/build.xml b/build/build.xml index 8c467b739..a1ba1d687 100644 --- a/build/build.xml +++ b/build/build.xml @@ -1002,6 +1002,18 @@ + + + + + + + + + + + + diff --git a/build/windows/launcher/config.xml b/build/windows/launcher/config.xml index 8f99be9e7..2abf18455 100644 --- a/build/windows/launcher/config.xml +++ b/build/windows/launcher/config.xml @@ -60,6 +60,9 @@ -splash:"%EXEDIR%/lib/splash.png" -Dsun.java2d.d3d=false -Djna.nosys=true + -Djna.nounpack=true + -Djna.boot.library.name=jnidispatch-4.2.2-win32-x86 + -Djna.boot.library.path="%EXEDIR%"/lib -DAPP_DIR="%EXEDIR%" diff --git a/build/windows/launcher/config_debug.xml b/build/windows/launcher/config_debug.xml index dbc146563..043866663 100644 --- a/build/windows/launcher/config_debug.xml +++ b/build/windows/launcher/config_debug.xml @@ -59,6 +59,10 @@ 32 -Dsun.java2d.d3d=false -Djna.nosys=true + -Djna.nounpack=true + -Djna.boot.library.name=jnidispatch-4.2.2-win32-x86 + -Djna.boot.library.path="%EXEDIR%"/lib + -Djna.debug_load=true -DAPP_DIR="%EXEDIR%" -DDEBUG=true From 7dcc1352a27ab25cc1732ca544c07a040fda0ec9 Mon Sep 17 00:00:00 2001 From: Cristian Maglie Date: Thu, 9 Mar 2017 15:47:16 +0200 Subject: [PATCH 2/2] During windows build use "icacls" tool to change file attributes Previously the ant call "chmod" was used, but this is a no-op on Windows, so it would works only if the IDE is cross-built from a unix host. This patch allows to build a distribution of the IDE also from a Windows host. --- build/build.xml | 31 +++++++++++++++++++++++++++---- 1 file changed, 27 insertions(+), 4 deletions(-) diff --git a/build/build.xml b/build/build.xml index a1ba1d687..f8a467e28 100644 --- a/build/build.xml +++ b/build/build.xml @@ -24,6 +24,8 @@ + + @@ -857,6 +859,19 @@ + + + + + + + + + + + + + @@ -983,7 +998,9 @@ - + + + @@ -994,9 +1011,13 @@ - + + + - + + + @@ -1012,7 +1033,9 @@ - + + +