diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index b870e056..0edf06b4 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/package.yml @@ -34,7 +34,7 @@ jobs: pyinstaller tabcmd-mac.spec --clean --noconfirm --distpath ./dist/macos/ BUNDLE_NAME: tabcmd.app OUT_FILE_NAME: tabcmd.app - OUT_BINARY_FILE_NAME: tabcmd + APP_BINARY_FILE_NAME: tabcmd ASSET_MIME: application/zip - os: macos-latest TARGET: macos @@ -42,7 +42,7 @@ jobs: pyinstaller tabcmd-mac.spec --clean --noconfirm --distpath ./dist/macos/ BUNDLE_NAME: tabcmd_arm64.app OUT_FILE_NAME: tabcmd.app - OUT_BINARY_FILE_NAME: tabcmd + APP_BINARY_FILE_NAME: tabcmd ASSET_MIME: application/zip - os: ubuntu-latest TARGET: ubuntu @@ -79,13 +79,12 @@ jobs: - name: Validate package for Mac if: matrix.TARGET == 'macos' - run: | - ./dist/${{ matrix.TARGET }}/${{ matrix.OUT_FILE_NAME }}/Contents/MacOS/tabcmd + run: ./dist/${{ matrix.TARGET }}/${{ matrix.OUT_FILE_NAME }}/Contents/MacOS/${{ matrix.APP_BINARY_FILE_NAME }} - name: Tar app bundle for Mac if: matrix.TARGET == 'macos' run: | - rm -f dist/${{ matrix.TARGET }}/tabcmd + rm -f dist/${{ matrix.TARGET }}/${{ matrix.APP_BINARY_FILE_NAME }} cd dist/${{ matrix.TARGET }} tar -cvf ${{ matrix.BUNDLE_NAME }}.tar ${{ matrix.OUT_FILE_NAME }}