ringer-client-desktop
maintainer zxp19821005
· 0 votes
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged
The npx command runs react-app-rewired and electron-builder, which are development tools used to build the project from its own source; this is a normal part of the build process for Electron apps and does not execute untrusted remote code.
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 npx command runs react-app-rewired and electron-builder, which are development tools used to build the project from its own source; this is a normal part of the build process for Electron apps and does not execute untrusted remote code.
1 higher static finding superseded - not the current verdict (shown for transparency)
MEDIUM
npx/bunx/deno executes a remote package
remote_code_tool
`npx`/`bunx`/`pnpm dlx`/`deno run <url>` downloads AND runs a remote package at build time — the moral equivalent of piping a download into a shell. Severity downgraded: Node.js consumer context.
-
PKGBUILD:83
NODE_ENV=production npx react-app-rewired build
PKGBUILD
1 offending line(s) highlighted
1
# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
2
pkgname=ringer-client-desktop
3
_pkgname=Ringer
4
_appname="${_pkgname}-Client-Desktop"
5
pkgver=5.2.1
6
_electronversion=29
7
_nodeversion=20
8
pkgrel=1
9
pkgdesc="A new cross platform messaging app.(Use system-wide electron)"
10
arch=('any')
11
url="https://lifplatforms.com/ringer.html"
12
_ghurl="https://github.com/Lif-Platforms/Ringer-Client-Desktop"
13
license=('GPL-2.0-only')
14
conflicts=("${pkgname}")
15
depends=(
16
"electron${_electronversion}"
17
)
18
makedepends=(
19
'npm'
20
'curl'
21
'nvm'
22
'gendesk'
23
'git'
24
)
25
options=(
26
'!strip'
27
'!emptydirs'
28
)
29
source=(
30
"${pkgname}-${pkgver}::git+${_ghurl}#tag=${pkgver}"
31
"${pkgname}.desktop"
32
"${pkgname}.sh"
33
)
34
sha256sums=('a156c5bf387f967f85c71750b9a3f4b687130035b0485b678133d45b50fc5d15'
35
'5ae75de25c7204dba7bfbbbe3c9f58cf6f565963359735a471e1f61ee8692181'
36
'31ad33b633744f5361abd964be306cea53ae1050e760c787115f7eca60045ae6')
37
_ensure_local_nvm() {
38
local NVM_DIR="${srcdir}/.nvm"
39
source /usr/share/nvm/init-nvm.sh || [[ $? != 1 ]]
40
nvm install "${_nodeversion}"
41
nvm use "${_nodeversion}"
42
}
43
_get_electron_version() {
44
_elec_ver="$(grep -m 1 '"electron":' "${srcdir}/${pkgname}-${pkgver}/package.json" | cut -d'"' -f4 | tr -d '^' | cut -d. -f1)"
45
echo -e "The electron version is: \033[1;31m${_elec_ver}\033[0m"
46
}
47
prepare() {
48
cd "${srcdir}/${pkgname}-${pkgver}"
49
_get_electron_version
50
sed -i -e "
51
s/@electronversion@/${_electronversion}/g
52
s/@appname@/${pkgname}/g
53
s/@runname@/app/g
54
s/@cfgdirname@/${_pkgname}/g
55
s/@options@/env ELECTRON_OZONE_PLATFORM_HINT=auto/g
56
" "${srcdir}/${pkgname}.sh"
57
export ELECTRON_SKIP_BINARY_DOWNLOAD=1
58
export SYSTEM_ELECTRON_VERSION="$(electron${_electronversion} -v | sed 's/v//g')"
59
HOME="${srcdir}/.electron-gyp"
60
{
61
echo -e '\n'
62
#echo 'build_from_source=true'
63
echo "cache=${srcdir}/.npm_cache"
64
} >> .npmrc
65
if [[ "$(curl -s ipinfo.io/country)" == *"CN"* ]]; then
66
{
67
echo 'registry=https://registry.npmmirror.com'
68
echo 'electron_mirror=https://registry.npmmirror.com/-/binary/electron/'
69
echo 'electron_builder_binaries_mirror=https://registry.npmmirror.com/-/binary/electron-builder-binaries/'
70
} >> .npmrc
71
find ./ -type f -name "package-lock.json" -exec sed -i "s/registry.npmjs.org/registry.npmmirror.com/g" {} +
72
fi
73
_ensure_local_nvm
74
cp public/icons/png/32x32.png public/logo.png
75
sed -i "s/favicon.ico/logo.png/g" main.js
76
sed -i "s/\"electron\": \"[^\"]*\"/\"electron\": \"${SYSTEM_ELECTRON_VERSION}\"/g" package.json
77
NODE_ENV=development npm install
78
}
79
build() {
80
cd "${srcdir}/${pkgname}-${pkgver}"
81
_ensure_local_nvm
82
local electronDist="/usr/lib/electron${_electronversion}"
83
NODE_ENV=production npx react-app-rewired build
84
NODE_ENV=production npm exec -c "electron-builder --linux dir -c.electronDist=${electronDist}"
85
}
86
package() {
87
install -Dm755 "${srcdir}/${pkgname}.sh" "${pkgdir}/usr/bin/${pkgname}"
88
install -Dm644 "${srcdir}/${pkgname}-${pkgver}/dist/linux-"*/resources/app.asar -t "${pkgdir}/usr/lib/${pkgname}"
89
cp -Pr --no-preserve=ownership "${srcdir}/${pkgname}-${pkgver}/dist/linux-"*/resources/app.asar.unpacked "${pkgdir}/usr/lib/${pkgname}"
90
_icon_sizes=(16x16 24x24 32x32 48x48 64x64 128x128 256x256 512x512 1024x1024)
91
for _icons in "${_icon_sizes[@]}";do
92
install -Dm644 "${srcdir}/${pkgname}-${pkgver}/public/icons/png/${_icons}.png" \
93
"${pkgdir}/usr/share/icons/hicolor/${_icons}/apps/${pkgname}.png"
94
done
95
install -Dm644 "${srcdir}/${pkgname}-${pkgver}/${pkgname}.desktop" -t "${pkgdir}/usr/share/applications"
96
}
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 |