aboutsummaryrefslogtreecommitdiffstats
path: root/tools/package.sh
diff options
context:
space:
mode:
authorKostya <mail@sartin.in>2026-08-23 18:10:32 +0300
committerKostya <mail@sartin.in>2026-08-23 18:10:32 +0300
commitc0dde6531e831730c25230097fd85a8a38214101 (patch)
treeea07fc772314a0351fb0fe616c45acd972119bf4 /tools/package.sh
parenta1d1be048745f03ca8ba9ac798325e04d6b1fa78 (diff)
downloadguess-market-c0dde6531e831730c25230097fd85a8a38214101.tar.gz
guess-market-c0dde6531e831730c25230097fd85a8a38214101.tar.xz
guess-market-c0dde6531e831730c25230097fd85a8a38214101.zip
openjfx: ship native libraries so the desktop UI can launch on Windows
lib/openjfx held only the JavaFX API jars, with no Prism/Glass native libraries backing them. At startup JavaFX tried the d3d then sw rendering pipelines and both failed to load, since NativeLibLoader had no native code to find, crashing before any window opened. Bump the jars to 25.0.4 to match the target JDK and add the matching native DLLs alongside them. Drop the web/media/swt/swing jars and their natives (including the 92MB jfxwebkit.dll) since ui-desktop never references those modules. Update package.sh to also stage *.dll files when copying runtime libs into build/dist, and point java.library.path at lib/openjfx in the generated run-*.bat so the natives are found at launch.
Diffstat (limited to 'tools/package.sh')
-rw-r--r--tools/package.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/package.sh b/tools/package.sh
index 186dab5..ce18f63 100644
--- a/tools/package.sh
+++ b/tools/package.sh
@@ -19,6 +19,10 @@ for d in $RUNTIME_LIB_DIRS; do
19 cp "$j" "$DIST/lib/$d/" 19 cp "$j" "$DIST/lib/$d/"
20 n=$((n + 1)) 20 n=$((n + 1))
21 done 21 done
22 for dll in lib/"$d"/*.dll; do
23 [ -f "$dll" ] || continue # e.g. openjfx's native Prism/Glass libraries
24 cp "$dll" "$DIST/lib/$d/"
25 done
22 echo " lib/$d/ ($n jars)" 26 echo " lib/$d/ ($n jars)"
23done 27done
24 28
@@ -61,7 +65,7 @@ for e in $EXECUTABLES; do
61 cat >"$DIST/run-${e#ui-}.bat" <<EOF 65 cat >"$DIST/run-${e#ui-}.bat" <<EOF
62@echo off 66@echo off
63cd /d "%~dp0" 67cd /d "%~dp0"
64java -jar "%~dp0$e.jar" 68java -Djava.library.path="%~dp0lib\openjfx" -jar "%~dp0$e.jar"
65if errorlevel 1 pause 69if errorlevel 1 pause
66EOF 70EOF
67done 71done