Fix chmod

This commit is contained in:
Yudi 2025-05-07 18:04:56 -03:00
parent 67fedffcbd
commit a7f628e943
No known key found for this signature in database
GPG key ID: E4743B2F033961D1

View file

@ -138,12 +138,8 @@ jobs:
--runtime ${{ matrix.rid }}
--self-contained
- name: Set permissions
if: ${{ !startsWith(matrix.rid, 'win-') }}
run: chmod +x ${{ matrix.app }}/bin/publish/${{ matrix.asset }}
- name: Generate macOS .app bundle resources
if: matrix.app == 'DiscordChatExporter.Gui' && startsWith(matrix.rid, 'osx-')
if: ${{ startsWith(matrix.rid, 'osx-') && matrix.app == 'DiscordChatExporter.Gui' }}
shell: pwsh
run: >
./bundle-macos-app.ps1
@ -230,6 +226,14 @@ jobs:
name: ${{ matrix.asset }}.${{ matrix.rid }}
path: ${{ matrix.app }}/
- name: Set permissions
if: ${{ !startsWith(matrix.rid, 'win-') && !(startsWith(matrix.rid, 'osx-') && matrix.app == 'DiscordChatExporter.Gui') }}
run: chmod +x ${{ matrix.app }}/${{ matrix.asset }}
- name: Set permissions for macOS .app bundle
if: ${{ startsWith(matrix.rid, 'osx-') && matrix.app == 'DiscordChatExporter.Gui' }}
run: 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
working-directory: ${{ matrix.app }}/