From 6834692fa2fd0198f7fdfcb63d11763c7ffd45b0 Mon Sep 17 00:00:00 2001 From: "Mike A." Date: Thu, 4 Jul 2024 20:27:34 +0200 Subject: [PATCH] Fix Windows not building if `py3bin` is not present --- scripts/package-windows.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/package-windows.sh b/scripts/package-windows.sh index 4fd0124..7bb17c1 100644 --- a/scripts/package-windows.sh +++ b/scripts/package-windows.sh @@ -31,8 +31,10 @@ for script in bin/* py3bin/*; do fi done -cp -f py3bin/* lib/. -rm -rf py3bin +if [ -d "py3bin" ]; then + cp -f py3bin/* lib/. + rm -rf py3bin +fi # Remove general purpose launcher rm -rf ${OUTPUT_DIR}${INSTALL_PREFIX}/win-launcher.exe