<html><head></head><body>Isn't "which" a Debian-ism?<br><br><div class="gmail_quote">Le 31 janvier 2020 12:24:04 GMT+02:00, Steve Lhomme <robux4@ycbcr.xyz> a écrit :<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail">No need to add a lot of packages just to run one program.<hr> extras/package/win32/build.sh | 13 +++++++++++++<br> 1 file changed, 13 insertions(+)<br><br>diff --git a/extras/package/win32/build.sh b/extras/package/win32/build.sh<br>index f46fbe832b7..3163a42aff2 100755<br>--- a/extras/package/win32/build.sh<br>+++ b/extras/package/win32/build.sh<br>@@ -122,6 +122,19 @@ if [ "$INTERACTIVE" != "yes" ] || [ ! -f ./Makefile ]; then<br>     NEEDED="$FORCED_TOOLS" ${SCRIPT_PATH}/../../tools/bootstrap<br> fi<br> make -j$JOBS<br>+<br>+# avoid installing wine on WSL<br>+# wine is needed to build Qt with shaders<br>+if test -z "`which wine`"<br>+then<br>+    if test -n "`which wsl.exe`"<br>+    then<br>+        echo "Using wsl.exe to replace wine"<br>+        echo "#!/bin/sh" > build/bin/wine<br>+        echo "wsl.exe \"\$@\"" >> build/bin/wine<br>+    fi<br>+fi<br>+<br> cd ../../<br> <br> export USE_FFMPEG=1</pre></blockquote></div><br>-- <br>Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.</body></html>