Skip to content

Commit

Permalink
Fix for tar-ing the right dir
Browse files Browse the repository at this point in the history
  • Loading branch information
Renoy John Marattukalam committed May 1, 2024
1 parent 0ff7cc2 commit 7b78654
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ jobs:
- os: macos-13
TARGET: macos
CMD_BUILD: >
pyinstaller tabcmd-mac.spec --clean --noconfirm --distpath ./dist/macos/tabcmd.app
pyinstaller tabcmd-mac.spec --clean --noconfirm --distpath ./dist/macos/
BUNDLE_NAME: tabcmd.app
OUT_FILE_NAME: tabcmd.app
OUT_BINARY_FILE_NAME: tabcmd
ASSET_MIME: application/zip
- os: macos-latest
TARGET: macos
CMD_BUILD: >
pyinstaller tabcmd-mac.spec --clean --noconfirm --distpath ./dist/macos/tabcmd_arm64.app
pyinstaller tabcmd-mac.spec --clean --noconfirm --distpath ./dist/macos/
BUNDLE_NAME: tabcmd_arm64.app
OUT_FILE_NAME: tabcmd.app
OUT_BINARY_FILE_NAME: tabcmd
Expand Down Expand Up @@ -80,14 +80,14 @@ jobs:
- name: Validate package for Mac
if: matrix.TARGET == 'macos'
run: |
./dist/${{ matrix.TARGET }}/${{ matrix.BUNDLE_NAME }}/${{ matrix.OUT_FILE_NAME }}/Contents/MacOS/tabcmd
./dist/${{ matrix.TARGET }}/${{ matrix.OUT_FILE_NAME }}/Contents/MacOS/tabcmd
- name: Tar app bundle for Mac
if: matrix.TARGET == 'macos'
run: |
rm -f dist/${{ matrix.TARGET }}/${{ matrix.BUNDLE_NAME }}/tabcmd
rm -f dist/${{ matrix.TARGET }}/tabcmd
cd dist/${{ matrix.TARGET }}
tar -cvf ${{ matrix.BUNDLE_NAME }}.tar ${{ matrix.BUNDLE_NAME }}
tar -cvf ${{ matrix.BUNDLE_NAME }}.tar ${{ matrix.OUT_FILE_NAME }}
- name: Upload artifact
if: matrix.TARGET != 'macos'
Expand Down

0 comments on commit 7b78654

Please sign in to comment.