From adafaaa49d1b61eda32a053633a7c6248402e6a0 Mon Sep 17 00:00:00 2001 From: Tyrrrz <1935960+Tyrrrz@users.noreply.github.com> Date: Wed, 25 Jun 2025 19:27:26 +0300 Subject: [PATCH] Clean up `chmod`s --- .github/workflows/main.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c587228c..7b97d2a8 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -213,13 +213,10 @@ jobs: - name: Set permissions if: ${{ !startsWith(matrix.rid, 'win-') }} run: | - if [ -f ${{ matrix.app }}/${{ matrix.asset }} ]; then - chmod +x ${{ matrix.app }}/${{ matrix.asset }} - fi + [ -f ${{ matrix.app }}/${{ matrix.asset }} ] && chmod +x ${{ matrix.app }}/${{ matrix.asset }} - if [ -f ${{ matrix.app }}/${{ matrix.asset }}.app/Contents/MacOS/${{ matrix.asset }} ]; then - chmod +x ${{ matrix.app }}/${{ matrix.asset }}.app/Contents/MacOS/${{ matrix.asset }} - fi + # macOS bundle + [ -f ${{ matrix.app }}/${{ matrix.asset }}.app/Contents/MacOS/${{ matrix.asset }} ] && chmod +x ${{ matrix.app }}/${{ matrix.asset }}.app/Contents/MacOS/${{ matrix.asset }} - name: Create package # Change into the artifacts directory to avoid including the directory itself in the zip archive