Files
CelloEffects/gcc/macos_wine_wrappers/imageconvert.sh
T
2026-10-18 14:06:40 +02:00

20 lines
880 B
Bash
Executable File

#!/bin/sh
# Lance l'imageconvert.out Windows du projet via le Wine embarqué dans TouchGFX.app
# (TouchGFX Designer pour macOS est une appli Wineskin - c'est le meme mecanisme que ST utilise).
set -e
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
PROJECT_ROOT="$(cd "$SCRIPT_DIR/../.." && pwd)"
WINE64="/Applications/STMicroelectronics/TouchGFX.app/Contents/SharedSupport/wine/bin/wine64"
TOOL="$PROJECT_ROOT/Appli/Middlewares/ST/touchgfx/framework/tools/imageconvert/build/win/imageconvert.out"
if [ ! -x "$WINE64" ]; then
echo "Wine introuvable ($WINE64). TouchGFX.app (Designer) doit etre installe dans /Applications/STMicroelectronics." >&2
exit 1
fi
export DYLD_FALLBACK_LIBRARY_PATH="/Applications/STMicroelectronics/TouchGFX.app/Contents/Frameworks:/Applications/STMicroelectronics/TouchGFX.app/Contents/SharedSupport/wine/lib"
"$WINE64" "$TOOL" "$@" 2>/dev/null