From a7a1a9180cdebae79ec4d05433d5613c230c4c9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dalibor=20Markovi=C4=87?= Date: Wed, 24 Jun 2026 22:47:46 +0200 Subject: [PATCH] Build: paralelni UPX u odvojenim tmp folderima (bez race condition) --- start.sh | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/start.sh b/start.sh index 29c13b3..95e989a 100755 --- a/start.sh +++ b/start.sh @@ -175,16 +175,13 @@ if [[ "$BUILD_IZBOR" =~ ^[dDyY] ]]; then build_za "windows" "ntech.exe" ;; 3) - if [[ "$UPX_IZBOR" =~ ^[dDyY] ]]; then - build_za "linux" "ntech" - build_za "windows" "ntech.exe" - else - build_za "linux" "ntech" & - PID_LINUX=$! - build_za "windows" "ntech.exe" & - PID_WIN=$! - wait $PID_LINUX $PID_WIN - fi + mkdir -p /tmp/ntech-build-linux /tmp/ntech-build-windows + (build_za "linux" "/tmp/ntech-build-linux/ntech" && cp /tmp/ntech-build-linux/ntech ntech) & + PID_LINUX=$! + (build_za "windows" "/tmp/ntech-build-windows/ntech.exe" && cp /tmp/ntech-build-windows/ntech.exe ntech.exe) & + PID_WIN=$! + wait $PID_LINUX $PID_WIN + rm -rf /tmp/ntech-build-linux /tmp/ntech-build-windows ;; *) build_za "linux" "ntech"