gui-butler

LOW
maintainer zxp19821005 0 votes scanned 2026-09-17 00:27:14.276658
View on AUR
Why flagged

The package downloads a prebuilt butler binary from itch.zone, a non-whitelisted but project-related host; however, it is used as a bundled tool and not executed directly in a risky context, and the rest of the build uses verifiable source from GitHub, making the overall risk low.

Triggered rules

Low AI review downgraded a static finding llm_review

The static rules flagged this MEDIUM, but an AI model (qwen/qwen3-235b-a22b-07-25) reviewed the full PKGBUILD and judged it LOW (confidence 95%): The package downloads a prebuilt butler binary from itch.zone, a non-whitelisted but project-related host; however, it is used as a bundled tool and not executed directly in a risky context, and the rest of the build uses verifiable source from GitHub, making the overall risk low.

1 higher static finding superseded - not the current verdict (shown for transparency)
Medium source=() URL on a non-standard host source_untrusted_domain

One or more source=() URLs point to a host outside the trusted allowlist (github.com, gitlab.com, codeberg.org, pypi.org, …).

  • PKGBUILD:31 "butler-${pkgver}.zip::https://broth.itch.zone/butler/linux-amd64/LATEST/archive/default"

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
2pkgname=gui-butler
3pkgver=2.3.4
4_electronversion=28
5_nodeversion=20
6pkgrel=2
7pkgdesc="A wrapper for itch.io's butler which lets you take advantage of the basic features without having to go through a CLI or set up build scripts for each new project.(Use system-wide electron)"
8arch=('x86_64')
9url="https://seansleblanc.itch.io/gui-butler"
10_ghurl="https://github.com/seleb/gui-butler"
11license=('MIT')
12conflicts=("${pkgname}")
13noextract=("butler-${pkgver}.zip")
14depends=(
15 "electron${_electronversion}"
16 'nodejs'
17)
18makedepends=(
19 'npm'
20 'gendesk'
21 'nvm'
22 'curl'
23 'git'
24)
25options=(
26 '!strip'
27 '!emptydirs'
28)
29source=(
30 "${pkgname}-${pkgver}::git+${_ghurl}#tag=v${pkgver}"
31 "butler-${pkgver}.zip::https://broth.itch.zone/butler/linux-amd64/LATEST/archive/default"
32 "${pkgname}.sh"
33)
34sha256sums=('94ef03cda13f5668bc6d6d3cf076b6f58b1d1c9be494e297e3115b2253d13bfc'
35 'bee1d708b5ed3dc7efcda3b5416ad5ca87a04d7e5fb6ebada510f3ba0cba3b69'
36 'f2fe8c189974ffb9d445e9a42bd4f1d5b60185607c3fcafae79ab44be224e013')
37_ensure_local_nvm() {
38 export NVM_DIR="${srcdir}/.nvm"
39 source /usr/share/nvm/init-nvm.sh || [[ $? != 1 ]]
40 nvm install "${_nodeversion}"
41 nvm use "${_nodeversion}"
42}
43prepare() {
44 cd "${srcdir}/${pkgname}-${pkgver}"
45 sed -i -e "
46 s/@electronversion@/${_electronversion}/g
47 s/@appname@/${pkgname}/g
48 s/@runname@/app/g
49 s/@cfgdirname@/${_pkgname}/g
50 s/@options@/env ELECTRON_OZONE_PLATFORM_HINT=auto/g
51 " "${srcdir}/${pkgname}.sh"
52 _ensure_local_nvm
53 gendesk -f -n -q \
54 --pkgname="${pkgname}" \
55 --pkgdesc="${pkgdesc}" \
56 --categories="Development" \
57 --name="${pkgname}" \
58 --exec="${pkgname} %U"
59 export ELECTRON_SKIP_BINARY_DOWNLOAD=1
60 export SYSTEM_ELECTRON_VERSION="$(electron${_electronversion} -v | sed 's/v//g')"
61 HOME="${srcdir}/.electron-gyp"
62 {
63 echo -e '\n'
64 #echo 'build_from_source=true'
65 echo "cache=${srcdir}/.npm_cache"
66 echo "maxsockets=32"
67 } >> .npmrc
68 if [[ "$(curl -s ipinfo.io/country)" == *"CN"* ]]; then
69 {
70 echo 'registry=https://registry.npmmirror.com'
71 echo 'electron_mirror=https://registry.npmmirror.com/-/binary/electron/'
72 echo 'electron_builder_binaries_mirror=https://registry.npmmirror.com/-/binary/electron-builder-binaries/'
73 } >> .npmrc
74 find ./ -type f -name "package-lock.json" -exec sed -i "s/registry.npmjs.org/registry.npmmirror.com/g" {} +
75 fi
76 sed -i "s/favicon\.ico/favicon\.png/g" package.json
77 NODE_ENV=development npm install --force
78 install -Dm755 -d "${srcdir}/${pkgname}-${pkgver}/bin/${pkgname}-linux-x64/resources/app/butler"
79 bsdtar -xf "${srcdir}/butler-${pkgver}.zip" -C "${srcdir}/${pkgname}-${pkgver}/bin/${pkgname}-linux-x64/resources/app/butler"
80}
81build() {
82 cd "${srcdir}/${pkgname}-${pkgver}"
83 NODE_ENV=production npm run build
84}
85package() {
86 install -Dm755 "${srcdir}/${pkgname}.sh" "${pkgdir}/usr/bin/${pkgname}"
87 install -Dm755 -d "${pkgdir}/usr/lib/${pkgname}"
88 cp -Pr --no-preserve=ownership "${srcdir}/${pkgname}-${pkgver}/bin/${pkgname}-linux-x64/resources/app" "${pkgdir}/usr/lib/${pkgname}"
89 install -Dm644 "${srcdir}/${pkgname}-${pkgver}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}"
90 install -Dm644 "${srcdir}/${pkgname}-${pkgver}/favicon.png" "${pkgdir}/usr/share/pixmaps/${pkgname}.png"
91 install -Dm644 "${srcdir}/${pkgname}-${pkgver}/${pkgname}.desktop" -t "${pkgdir}/usr/share/applications"
92}

Scan history

Scanned at (UTC)SeverityRules
2026-09-17 00:27:14 Low 2
2026-09-16 00:03:17 Low 2
2026-09-15 00:25:31 Low 2
2026-09-14 00:27:57 Low 2
2026-09-13 00:19:54 Low 2
2026-09-12 00:25:17 Low 2
2026-09-11 00:19:22 Low 2
2026-09-10 00:22:44 Low 2
2026-09-09 00:04:09 Low 2
2026-09-08 00:18:08 Low 2
2026-09-07 00:30:15 Low 2
2026-09-06 00:17:06 Low 2
2026-09-05 00:16:27 Low 2
2026-09-04 00:03:13 Low 2
2026-09-03 00:15:47 Low 2
2026-09-02 00:02:31 Low 2
2026-09-01 00:11:19 Low 2
2026-08-31 00:19:57 Low 2
2026-08-30 00:04:14 Low 2
2026-08-29 00:29:17 Low 2

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion