packaging: fix macos dmg (#1141)
This commit is contained in:
parent
81aecff301
commit
5779a4bd89
3 changed files with 21 additions and 52 deletions
3
.github/ISSUE_TEMPLATE/bug-report.yml
vendored
3
.github/ISSUE_TEMPLATE/bug-report.yml
vendored
|
|
@ -102,7 +102,6 @@ body:
|
||||||
- Linux - solus (Third Party)
|
- Linux - solus (Third Party)
|
||||||
- macOS - dmg
|
- macOS - dmg
|
||||||
- macOS - Portfile
|
- macOS - Portfile
|
||||||
- macOS - pkg
|
|
||||||
- Windows - Chocolatey (Third Party)
|
- Windows - Chocolatey (Third Party)
|
||||||
- Windows - installer
|
- Windows - installer
|
||||||
- Windows - portable
|
- Windows - portable
|
||||||
|
|
@ -111,6 +110,7 @@ body:
|
||||||
- other (not listed)
|
- other (not listed)
|
||||||
- other (self built)
|
- other (self built)
|
||||||
- other (fork of this repo)
|
- other (fork of this repo)
|
||||||
|
- n/a
|
||||||
validations:
|
validations:
|
||||||
required: true
|
required: true
|
||||||
- type: dropdown
|
- type: dropdown
|
||||||
|
|
@ -123,6 +123,7 @@ body:
|
||||||
- Intel
|
- Intel
|
||||||
- Nvidia
|
- Nvidia
|
||||||
- none (software encoding)
|
- none (software encoding)
|
||||||
|
- n/a
|
||||||
validations:
|
validations:
|
||||||
required: true
|
required: true
|
||||||
- type: input
|
- type: input
|
||||||
|
|
|
||||||
64
.github/workflows/CI.yml
vendored
64
.github/workflows/CI.yml
vendored
|
|
@ -514,13 +514,10 @@ jobs:
|
||||||
|
|
||||||
# package
|
# package
|
||||||
cpack -G DragNDrop
|
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
|
# cpack -G Bundle
|
||||||
mv ./cpack_artifacts/Sunshine.dmg ../artifacts/sunshine-macos-experimental-bundle.dmg
|
# mv ./cpack_artifacts/Sunshine.dmg ../artifacts/sunshine-bundle.dmg
|
||||||
|
|
||||||
cpack -G ZIP
|
|
||||||
mv ./cpack_artifacts/Sunshine.zip ../artifacts/sunshine-macos-experimental-archive.zip
|
|
||||||
|
|
||||||
- name: Upload Artifacts
|
- name: Upload Artifacts
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
|
|
@ -528,29 +525,19 @@ jobs:
|
||||||
name: sunshine-macos
|
name: sunshine-macos
|
||||||
path: artifacts/
|
path: artifacts/
|
||||||
|
|
||||||
# this step can be removed after packages are fixed
|
- name: Create/Update GitHub Release
|
||||||
- name: Delete experimental packages
|
if: ${{ needs.setup_release.outputs.create_release == 'true' }}
|
||||||
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
|
uses: ncipollo/release-action@v1
|
||||||
working-directory: artifacts
|
with:
|
||||||
run: |
|
name: ${{ needs.setup_release.outputs.release_name }}
|
||||||
rm -f ./sunshine-macos-experimental-dragndrop.dmg
|
tag: ${{ needs.setup_release.outputs.release_tag }}
|
||||||
rm -f ./sunshine-macos-experimental-bundle.dmg
|
commit: ${{ needs.setup_release.outputs.release_commit }}
|
||||||
rm -f ./sunshine-macos-experimental-archive.zip
|
artifacts: "*artifacts/*"
|
||||||
|
token: ${{ secrets.GH_BOT_TOKEN }}
|
||||||
# # no artifacts to release currently
|
allowUpdates: true
|
||||||
# - name: Create/Update GitHub Release
|
body: ${{ needs.setup_release.outputs.release_body }}
|
||||||
# if: ${{ needs.setup_release.outputs.create_release == 'true' }}
|
discussionCategory: announcements
|
||||||
# uses: ncipollo/release-action@v1
|
prerelease: ${{ needs.setup_release.outputs.pre_release }}
|
||||||
# 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:
|
build_mac_port:
|
||||||
name: Macports
|
name: Macports
|
||||||
|
|
@ -728,25 +715,6 @@ jobs:
|
||||||
done
|
done
|
||||||
exit "$fail"
|
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
|
- name: Upload Artifacts
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
|
|
@ -190,11 +190,11 @@ macOS
|
||||||
-----
|
-----
|
||||||
Sunshine on macOS is experimental. Gamepads do not work. Other features may not work as expected.
|
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:
|
Uninstall:
|
||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue