From 5779a4bd89b0c04ecab6658cd3f5be36e0633211 Mon Sep 17 00:00:00 2001 From: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com> Date: Thu, 4 May 2023 21:07:41 -0400 Subject: [PATCH] packaging: fix macos dmg (#1141) --- .github/ISSUE_TEMPLATE/bug-report.yml | 3 +- .github/workflows/CI.yml | 64 +++++++-------------------- docs/source/about/installation.rst | 6 +-- 3 files changed, 21 insertions(+), 52 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug-report.yml b/.github/ISSUE_TEMPLATE/bug-report.yml index d25c4091..d701774e 100644 --- a/.github/ISSUE_TEMPLATE/bug-report.yml +++ b/.github/ISSUE_TEMPLATE/bug-report.yml @@ -102,7 +102,6 @@ body: - Linux - solus (Third Party) - macOS - dmg - macOS - Portfile - - macOS - pkg - Windows - Chocolatey (Third Party) - Windows - installer - Windows - portable @@ -111,6 +110,7 @@ body: - other (not listed) - other (self built) - other (fork of this repo) + - n/a validations: required: true - type: dropdown @@ -123,6 +123,7 @@ body: - Intel - Nvidia - none (software encoding) + - n/a validations: required: true - type: input diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index b377b4c7..5ec24b3a 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -514,13 +514,10 @@ jobs: # package cpack -G DragNDrop - mv ./cpack_artifacts/Sunshine.dmg ../artifacts/sunshine-macos-experimental-dragndrop.dmg + mv ./cpack_artifacts/Sunshine.dmg ../artifacts/sunshine.dmg - cpack -G Bundle - mv ./cpack_artifacts/Sunshine.dmg ../artifacts/sunshine-macos-experimental-bundle.dmg - - cpack -G ZIP - mv ./cpack_artifacts/Sunshine.zip ../artifacts/sunshine-macos-experimental-archive.zip + # cpack -G Bundle + # mv ./cpack_artifacts/Sunshine.dmg ../artifacts/sunshine-bundle.dmg - name: Upload Artifacts uses: actions/upload-artifact@v3 @@ -528,29 +525,19 @@ jobs: name: sunshine-macos path: artifacts/ - # this step can be removed after packages are fixed - - name: Delete experimental packages - if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} - working-directory: artifacts - run: | - rm -f ./sunshine-macos-experimental-dragndrop.dmg - rm -f ./sunshine-macos-experimental-bundle.dmg - rm -f ./sunshine-macos-experimental-archive.zip - -# # no artifacts to release currently -# - name: Create/Update GitHub Release -# if: ${{ needs.setup_release.outputs.create_release == 'true' }} -# uses: ncipollo/release-action@v1 -# with: -# name: ${{ needs.setup_release.outputs.release_name }} -# tag: ${{ needs.setup_release.outputs.release_tag }} -# commit: ${{ needs.setup_release.outputs.release_commit }} -# artifacts: "*artifacts/*" -# token: ${{ secrets.GH_BOT_TOKEN }} -# allowUpdates: true -# body: ${{ needs.setup_release.outputs.release_body }} -# discussionCategory: announcements -# prerelease: ${{ needs.setup_release.outputs.pre_release }} + - name: Create/Update GitHub Release + if: ${{ needs.setup_release.outputs.create_release == 'true' }} + uses: ncipollo/release-action@v1 + with: + name: ${{ needs.setup_release.outputs.release_name }} + tag: ${{ needs.setup_release.outputs.release_tag }} + commit: ${{ needs.setup_release.outputs.release_commit }} + artifacts: "*artifacts/*" + token: ${{ secrets.GH_BOT_TOKEN }} + allowUpdates: true + body: ${{ needs.setup_release.outputs.release_body }} + discussionCategory: announcements + prerelease: ${{ needs.setup_release.outputs.pre_release }} build_mac_port: name: Macports @@ -728,25 +715,6 @@ jobs: done exit "$fail" - - name: Package - run: | - # create packages - sudo port pkg sunshine - sudo port dmg sunshine - - work=$(port work sunshine) - echo "Sunshine port work directory: ${work}" - - # move components out of port work directory - sudo mv ${work}/Sunshine*component.pkg /tmp/ - - # copy artifacts - sudo mv ${work}/Sunshine*.pkg ./artifacts/sunshine.pkg - sudo mv ${work}/Sunshine*.dmg ./artifacts/sunshine.dmg - - # move components back - # sudo mv /tmp/Sunshine*component.pkg ${work}/ - - name: Upload Artifacts uses: actions/upload-artifact@v3 with: diff --git a/docs/source/about/installation.rst b/docs/source/about/installation.rst index dede1f22..e143c863 100644 --- a/docs/source/about/installation.rst +++ b/docs/source/about/installation.rst @@ -190,11 +190,11 @@ macOS ----- Sunshine on macOS is experimental. Gamepads do not work. Other features may not work as expected. -pkg +dmg ^^^ -.. Warning:: The `pkg` does not include runtime dependencies. +.. Warning:: The `dmg` does not include runtime dependencies. -#. Download the ``sunshine.pkg`` file and install it as normal. +#. Download the ``sunshine.dmg`` file and install it. Uninstall: .. code-block:: bash