build(homebrew): fix service install on linux (#5223)
This commit is contained in:
4
.github/workflows/localize.yml
vendored
4
.github/workflows/localize.yml
vendored
@@ -38,7 +38,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Sync Python tools
|
- name: Sync Python tools
|
||||||
run: |
|
run: |
|
||||||
uv sync --locked --only-group locale \
|
uv sync --frozen --only-group locale \
|
||||||
--python "${PYTHON_VERSION}" \
|
--python "${PYTHON_VERSION}" \
|
||||||
--no-python-downloads \
|
--no-python-downloads \
|
||||||
--no-install-project
|
--no-install-project
|
||||||
@@ -62,7 +62,7 @@ jobs:
|
|||||||
echo "NEW_FILE=${new_file}" >> "${GITHUB_ENV}"
|
echo "NEW_FILE=${new_file}" >> "${GITHUB_ENV}"
|
||||||
|
|
||||||
# extract the new strings
|
# extract the new strings
|
||||||
uv run --locked --no-sync python ./scripts/_locale.py --extract
|
uv run --frozen --no-sync python ./scripts/_locale.py --extract
|
||||||
|
|
||||||
- name: git diff
|
- name: git diff
|
||||||
if: env.NEW_FILE == 'false'
|
if: env.NEW_FILE == 'false'
|
||||||
|
|||||||
@@ -18,6 +18,13 @@ if(${SUNSHINE_BUILD_APPIMAGE} OR ${SUNSHINE_BUILD_FLATPAK})
|
|||||||
DESTINATION "${SUNSHINE_ASSETS_DIR}/modules-load.d")
|
DESTINATION "${SUNSHINE_ASSETS_DIR}/modules-load.d")
|
||||||
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/app-${PROJECT_FQDN}.service"
|
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/app-${PROJECT_FQDN}.service"
|
||||||
DESTINATION "${SUNSHINE_ASSETS_DIR}/systemd/user")
|
DESTINATION "${SUNSHINE_ASSETS_DIR}/systemd/user")
|
||||||
|
elseif(${SUNSHINE_BUILD_HOMEBREW})
|
||||||
|
install(FILES "${SUNSHINE_SOURCE_ASSETS_DIR}/linux/misc/60-sunshine.rules"
|
||||||
|
DESTINATION "${CMAKE_INSTALL_LIBDIR}/udev/rules.d")
|
||||||
|
install(FILES "${SUNSHINE_SOURCE_ASSETS_DIR}/linux/misc/60-sunshine.conf"
|
||||||
|
DESTINATION "${CMAKE_INSTALL_LIBDIR}/modules-load.d")
|
||||||
|
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/app-${PROJECT_FQDN}.service"
|
||||||
|
DESTINATION ".")
|
||||||
else()
|
else()
|
||||||
find_package(Systemd)
|
find_package(Systemd)
|
||||||
find_package(Udev)
|
find_package(Udev)
|
||||||
|
|||||||
@@ -174,6 +174,7 @@ class Sunshine < Formula
|
|||||||
-DSUNSHINE_PUBLISHER_WEBSITE='https://app.lizardbyte.dev'
|
-DSUNSHINE_PUBLISHER_WEBSITE='https://app.lizardbyte.dev'
|
||||||
-DSUNSHINE_PUBLISHER_ISSUE_URL='https://app.lizardbyte.dev/support'
|
-DSUNSHINE_PUBLISHER_ISSUE_URL='https://app.lizardbyte.dev/support'
|
||||||
]
|
]
|
||||||
|
args << "-DSUNSHINE_EXECUTABLE_PATH=#{opt_bin}/sunshine" if OS.linux?
|
||||||
# Point cmake at the venv Python that has jinja2 installed (set up in setup_build_environment)
|
# Point cmake at the venv Python that has jinja2 installed (set up in setup_build_environment)
|
||||||
args << "-DPython_EXECUTABLE=#{@glad_python}" if @glad_python
|
args << "-DPython_EXECUTABLE=#{@glad_python}" if @glad_python
|
||||||
args
|
args
|
||||||
@@ -281,7 +282,8 @@ class Sunshine < Formula
|
|||||||
end
|
end
|
||||||
|
|
||||||
service do
|
service do
|
||||||
run [opt_bin/"sunshine", "~/.config/sunshine/sunshine.conf"]
|
run [opt_bin/"sunshine", "~/.config/sunshine/sunshine.conf"] if OS.mac?
|
||||||
|
name linux: "app-@PROJECT_FQDN@" if OS.linux?
|
||||||
end
|
end
|
||||||
|
|
||||||
def post_install
|
def post_install
|
||||||
|
|||||||
Reference in New Issue
Block a user