From cf5199768077a20c0ad917b85ef1c8a3a2fa6536 Mon Sep 17 00:00:00 2001 From: ed Date: Wed, 3 Aug 2022 20:01:54 +0200 Subject: [PATCH] fix make-sfx.sh on windows/msys2 --- scripts/make-sfx.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/make-sfx.sh b/scripts/make-sfx.sh index 4981d78a..aa47858f 100755 --- a/scripts/make-sfx.sh +++ b/scripts/make-sfx.sh @@ -26,6 +26,11 @@ help() { exec cat <<'EOF' # (browsers will try to use 'Consolas' instead) # # `no-dd` saves ~2k by removing the mouse cursor +# +# --------------------------------------------------------------------- +# +# if you are on windows, you can use msys2: +# PATH=/c/Users/$USER/AppData/Local/Programs/Python/Python310:"$PATH" ./make-sfx.sh fast EOF } @@ -190,7 +195,7 @@ tmpdir="$( done # remove type hints before build instead - (cd copyparty; python3 ../../scripts/strip_hints/a.py; rm uh) + (cd copyparty; "$pybin" ../../scripts/strip_hints/a.py; rm uh) } ver=