feat(macos): add beta homebrew formula (#2990)
This commit is contained in:
parent
b6b8e681cb
commit
0b8468ca3e
3 changed files with 36 additions and 0 deletions
33
.github/workflows/CI.yml
vendored
33
.github/workflows/CI.yml
vendored
|
|
@ -590,6 +590,39 @@ jobs:
|
||||||
tag: ${{ needs.setup_release.outputs.release_tag }}
|
tag: ${{ needs.setup_release.outputs.release_tag }}
|
||||||
token: ${{ secrets.GH_BOT_TOKEN }}
|
token: ${{ secrets.GH_BOT_TOKEN }}
|
||||||
|
|
||||||
|
- name: Patch homebrew formula
|
||||||
|
# create beta version of the formula
|
||||||
|
# don't run this on macOS, as the sed command fails
|
||||||
|
if: >-
|
||||||
|
matrix.release
|
||||||
|
run: |
|
||||||
|
# variables
|
||||||
|
formula_file="homebrew/sunshine-beta.rb"
|
||||||
|
|
||||||
|
# rename the file
|
||||||
|
mv homebrew/sunshine.rb $formula_file
|
||||||
|
|
||||||
|
# update the formula
|
||||||
|
sed -i 's/class Sunshine < Formula/class SunshineBeta < Formula/' $formula_file
|
||||||
|
sed -i 's/# conflicts_with/conflicts_with/' $formula_file
|
||||||
|
|
||||||
|
# print new file
|
||||||
|
echo "New formula:"
|
||||||
|
cat $formula_file
|
||||||
|
|
||||||
|
- name: Upload Homebrew Beta Formula
|
||||||
|
if: >-
|
||||||
|
matrix.release &&
|
||||||
|
needs.setup_release.outputs.publish_release == 'true'
|
||||||
|
uses: LizardByte/homebrew-release-action@v2024.612.21058
|
||||||
|
with:
|
||||||
|
formula_file: ${{ github.workspace }}/homebrew/sunshine-beta.rb
|
||||||
|
git_email: ${{ secrets.GH_BOT_EMAIL }}
|
||||||
|
git_username: ${{ secrets.GH_BOT_NAME }}
|
||||||
|
publish: true
|
||||||
|
token: ${{ secrets.GH_BOT_TOKEN }}
|
||||||
|
validate: false
|
||||||
|
|
||||||
build_mac_port:
|
build_mac_port:
|
||||||
needs: [setup_release]
|
needs: [setup_release]
|
||||||
strategy:
|
strategy:
|
||||||
|
|
|
||||||
|
|
@ -262,6 +262,8 @@ brew install sunshine
|
||||||
brew uninstall sunshine
|
brew uninstall sunshine
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@tip{For beta you can replace `sunshine` with `sunshine-beta` in the above commands.}
|
||||||
|
|
||||||
#### Portfile
|
#### Portfile
|
||||||
This package requires that you have [MacPorts](https://www.macports.org/install.php) installed.
|
This package requires that you have [MacPorts](https://www.macports.org/install.php) installed.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
require "language/node"
|
require "language/node"
|
||||||
|
|
||||||
class @PROJECT_NAME@ < Formula
|
class @PROJECT_NAME@ < Formula
|
||||||
|
# conflicts_with "sunshine", because: "sunshine and sunshine-beta cannot be installed at the same time"
|
||||||
desc "@PROJECT_DESCRIPTION@"
|
desc "@PROJECT_DESCRIPTION@"
|
||||||
homepage "@PROJECT_HOMEPAGE_URL@"
|
homepage "@PROJECT_HOMEPAGE_URL@"
|
||||||
url "@GITHUB_CLONE_URL@",
|
url "@GITHUB_CLONE_URL@",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue