fix Nuitka Action Windows zip doesnt create zip_output directory and fails

This commit is contained in:
csd4ni3l
2025-05-18 16:18:16 +02:00
committed by GitHub
parent 32699008bd
commit 220f8c0216

View File

@@ -41,10 +41,10 @@ jobs:
- name: Zip Build Output - name: Zip Build Output
shell: bash shell: bash
run: | run: |
if [[ "$RUNNER_OS" == "Windows" ]]; then
powershell -Command "Compress-Archive -Path build\run.dist\* -DestinationPath zip_output\ShatterStack-${{ runner.os }}.zip"
else
mkdir -p zip_output 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
zip -r "zip_output/ShatterStack-${{ runner.os }}.zip" build/run.dist/* zip -r "zip_output/ShatterStack-${{ runner.os }}.zip" build/run.dist/*
fi fi