Skip to content

Commit 7d234bf

Browse files
build(homebrew): fix service install on linux (#5223)
1 parent 0e35140 commit 7d234bf

3 files changed

Lines changed: 12 additions & 3 deletions

File tree

.github/workflows/localize.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838

3939
- name: Sync Python tools
4040
run: |
41-
uv sync --locked --only-group locale \
41+
uv sync --frozen --only-group locale \
4242
--python "${PYTHON_VERSION}" \
4343
--no-python-downloads \
4444
--no-install-project
@@ -62,7 +62,7 @@ jobs:
6262
echo "NEW_FILE=${new_file}" >> "${GITHUB_ENV}"
6363
6464
# extract the new strings
65-
uv run --locked --no-sync python ./scripts/_locale.py --extract
65+
uv run --frozen --no-sync python ./scripts/_locale.py --extract
6666
6767
- name: git diff
6868
if: env.NEW_FILE == 'false'

cmake/packaging/linux.cmake

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ if(${SUNSHINE_BUILD_APPIMAGE} OR ${SUNSHINE_BUILD_FLATPAK})
1818
DESTINATION "${SUNSHINE_ASSETS_DIR}/modules-load.d")
1919
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/app-${PROJECT_FQDN}.service"
2020
DESTINATION "${SUNSHINE_ASSETS_DIR}/systemd/user")
21+
elseif(${SUNSHINE_BUILD_HOMEBREW})
22+
install(FILES "${SUNSHINE_SOURCE_ASSETS_DIR}/linux/misc/60-sunshine.rules"
23+
DESTINATION "${CMAKE_INSTALL_LIBDIR}/udev/rules.d")
24+
install(FILES "${SUNSHINE_SOURCE_ASSETS_DIR}/linux/misc/60-sunshine.conf"
25+
DESTINATION "${CMAKE_INSTALL_LIBDIR}/modules-load.d")
26+
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/app-${PROJECT_FQDN}.service"
27+
DESTINATION ".")
2128
else()
2229
find_package(Systemd)
2330
find_package(Udev)

packaging/sunshine.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ def base_cmake_args
174174
-DSUNSHINE_PUBLISHER_WEBSITE='https://app.lizardbyte.dev'
175175
-DSUNSHINE_PUBLISHER_ISSUE_URL='https://app.lizardbyte.dev/support'
176176
]
177+
args << "-DSUNSHINE_EXECUTABLE_PATH=#{opt_bin}/sunshine" if OS.linux?
177178
# Point cmake at the venv Python that has jinja2 installed (set up in setup_build_environment)
178179
args << "-DPython_EXECUTABLE=#{@glad_python}" if @glad_python
179180
args
@@ -281,7 +282,8 @@ def install
281282
end
282283

283284
service do
284-
run [opt_bin/"sunshine", "~/.config/sunshine/sunshine.conf"]
285+
run [opt_bin/"sunshine", "~/.config/sunshine/sunshine.conf"] if OS.mac?
286+
name linux: "app-@PROJECT_FQDN@" if OS.linux?
285287
end
286288

287289
def post_install

0 commit comments

Comments
 (0)