fix: add xdotool bundling to build-appimage.sh

- Copies xdotool from system or /tmp/xdotool-extract
- Fallback message if not found
- xdotool type is preferred for Unicode injection (no clipboard hacks)
This commit is contained in:
Khoa Vo 2026-06-26 16:44:42 +07:00
parent 01fe7c4f1c
commit 540c576591

View file

@ -53,6 +53,18 @@ else
echo " xclip not found on system, skipping"
fi
# Bundle xdotool for reliable Unicode text injection
echo " Bundling xdotool..."
if command -v xdotool &>/dev/null; then
cp "$(which xdotool)" "$APPDIR/usr/bin/"
echo " xdotool bundled"
elif [ -f /tmp/xdotool-extract/usr/bin/xdotool ]; then
cp /tmp/xdotool-extract/usr/bin/xdotool "$APPDIR/usr/bin/"
echo " xdotool bundled (from extract)"
else
echo " xdotool not found, Unicode falls back to clipboard"
fi
# Compile and bundle vietc-xrecord (C helper for XRecord keyboard capture)
echo " Compiling vietc-xrecord..."
if command -v gcc &>/dev/null; then