Skip to content

Commit 92a9230

Browse files
build(linux): avoid network for appstream cli & add missing deps (#5363)
1 parent 3437a0b commit 92a9230

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

packaging/linux/Arch/PKGBUILD

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ fi
3131
depends=(
3232
'avahi'
3333
'curl'
34+
'gtk3'
35+
'hicolor-icon-theme'
36+
'libayatana-appindicator'
3437
'libcap'
3538
'libdrm'
3639
'libevdev'
@@ -168,9 +171,13 @@ build() {
168171
_cmake_options+=(-DBUILD_TESTS=OFF)
169172
fi
170173

174+
if [[ -z "${GITHUB_ACTIONS}" ]]; then
175+
_appstreamcli_arguments=(--no-net)
176+
fi
177+
171178
cmake "${_cmake_options[@]}"
172179

173-
appstreamcli validate "build/dev.lizardbyte.app.Sunshine.metainfo.xml"
180+
appstreamcli validate "${_appstreamcli_arguments[@]}" "build/dev.lizardbyte.app.Sunshine.metainfo.xml"
174181
appstream-util validate "build/dev.lizardbyte.app.Sunshine.metainfo.xml"
175182
desktop-file-validate "build/dev.lizardbyte.app.Sunshine.desktop"
176183
desktop-file-validate "build/dev.lizardbyte.app.Sunshine.terminal.desktop"

0 commit comments

Comments
 (0)