From 220f8c02164595b36472ec258ab6de00302290af Mon Sep 17 00:00:00 2001 From: csd4ni3l Date: Sun, 18 May 2025 16:18:16 +0200 Subject: [PATCH] fix Nuitka Action Windows zip doesnt create zip_output directory and fails --- .github/workflows/main.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 952d6ab..580c8c7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -37,14 +37,14 @@ jobs: include-data-files: CREDITS=CREDITS mode: standalone output-file: ShatterStack - + - name: Zip Build Output shell: bash run: | - if [[ "$RUNNER_OS" == "Windows" ]]; then - powershell -Command "Compress-Archive -Path build\run.dist\* -DestinationPath zip_output\ShatterStack-${{ runner.os }}.zip" + mkdir -p zip_output + if [ "${{ runner.os }}" = "Windows" ]; then + powershell.exe -Command "Compress-Archive -Path 'build/run.dist/*' -DestinationPath 'zip_output/ShatterStack-${{ runner.os }}.zip'" else - mkdir -p zip_output zip -r "zip_output/ShatterStack-${{ runner.os }}.zip" build/run.dist/* fi