Debian 13 fix for Gowin IDE
For rare cases I still use a small PC runngin Debian 13.
Opposed to macOS running Gowin IDE isn't straightforward as it claims about missing symbols in libfontconfig.so.
So for running Gowin IDE on Debain 13 I use this script to preload libfontconfig.so and export the supplied libraries from Gowin installation:
#!/usr/bin/bash
if [ -L //lib/x86_64-linux-gnu/libfreetype.so ];then
export 'LD_PRELOAD=/lib/x86_64-linux-gnu/libfreetype.so'
fi
export LD_LIBRARY_PATH=/home/user/opt/Gowin_V1.9.12.01/IDE/lib
~/opt/Gowin_V1.9.12.01/IDE/bin/gw_ide

