From b3c5ea4a41c7af65567318b9fd4a40f9ec0f3b02 Mon Sep 17 00:00:00 2001 From: Hans Date: Sat, 4 May 2024 20:39:49 +0800 Subject: [PATCH] fix: fix windows prepare script --- scripts/prepare-windows.sh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/scripts/prepare-windows.sh b/scripts/prepare-windows.sh index 88e09a9..182351c 100755 --- a/scripts/prepare-windows.sh +++ b/scripts/prepare-windows.sh @@ -39,11 +39,7 @@ fi mkdir win32-arm64 || true cd win32-arm64 -if which cygpath; then - SDK_ROOT=$(cygpath -w SDK) -else - SDK_ROOT=$(realpath SDK) -fi +SDK_ROOT=$(python -c "import os,sys; print(os.path.abspath(sys.argv[1]))" "SDK") if [ ! -d SDK ]; then # build from source