20 lines
878 B
Bash
Executable File
20 lines
878 B
Bash
Executable File
#!/bin/sh
|
|
# Lance le fontconvert.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/fontconvert/build/win/fontconvert.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
|