gui-butler
maintainer zxp19821005
· 0 votes
· scanned 2026-08-03 00:08:14.047287
LOW
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>
2
pkgname=gui-butler
3
pkgver=2.3.4
4
_electronversion=28
5
_nodeversion=20
6
pkgrel=2
7
pkgdesc="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)"
8
arch=('x86_64')
9
url="https://seansleblanc.itch.io/gui-butler"
10
_ghurl="https://github.com/seleb/gui-butler"
11
license=('MIT')
12
conflicts=("${pkgname}")
13
noextract=("butler-${pkgver}.zip")
14
depends=(
15
"electron${_electronversion}"
16
'nodejs'
17
)
18
makedepends=(
19
'npm'
20
'gendesk'
21
'nvm'
22
'curl'
23
'git'
24
)
25
options=(
26
'!strip'
27
'!emptydirs'
28
)
29
source=(
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
)
34
sha256sums=('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
}
43
prepare() {
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
}
81
build() {
82
cd "${srcdir}/${pkgname}-${pkgver}"
83
NODE_ENV=production npm run build
84
}
85
package() {
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) | Severity | Rules |
|---|---|---|
| 2026-08-03 00:08:14 | LOW | 2 |
| 2026-08-02 00:16:08 | LOW | 2 |
| 2026-08-01 00:11:18 | LOW | 2 |
| 2026-07-31 00:14:10 | LOW | 2 |
| 2026-07-30 00:17:23 | LOW | 2 |
| 2026-07-29 00:25:53 | LOW | 2 |
| 2026-07-28 00:07:28 | LOW | 2 |
| 2026-07-27 00:24:32 | LOW | 2 |
| 2026-07-26 00:07:32 | LOW | 2 |
| 2026-07-25 00:13:44 | LOW | 2 |
| 2026-07-24 00:02:28 | LOW | 2 |
| 2026-07-23 00:14:47 | LOW | 2 |
| 2026-07-22 00:29:32 | LOW | 2 |
| 2026-07-21 00:24:15 | LOW | 2 |
| 2026-07-20 00:19:49 | LOW | 2 |
| 2026-07-19 00:17:08 | LOW | 2 |
| 2026-07-18 00:14:48 | LOW | 2 |
| 2026-07-17 00:06:16 | LOW | 2 |
| 2026-07-16 00:05:41 | LOW | 2 |
| 2026-07-15 00:09:25 | LOW | 2 |