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