agendapp
maintainer zxp19821005
· 0 votes
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged
The npx command in build() runs electron-packager on the locally checked-out source code, which is a standard and safe build step for Electron apps, not execution of a remote package.
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 in build() runs electron-packager on the locally checked-out source code, which is a standard and safe build step for Electron apps, not execution of a remote package.
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:86
NODE_ENV=production npx electron-packager . --platform=linux --icon=src/icons/icon.png --out=dist --overwrite
PKGBUILD
1 offending line(s) highlighted
1
# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
2
pkgname=agendapp
3
_pkgname=Agendapp
4
pkgver=1.5.0
5
_electronversion=39
6
_nodeversion=22
7
pkgrel=1
8
pkgdesc="One of the best software to simplify school calendar management and facilitate classroom notes.(Use system-wide electron)"
9
arch=('any')
10
url="https://github.com/johan-perso/agendapp"
11
license=('MIT')
12
conflicts=("${pkgname}")
13
depends=(
14
"electron${_electronversion}"
15
'nodejs'
16
)
17
makedepends=(
18
'gendesk'
19
'npm'
20
'nvm'
21
'curl'
22
'git'
23
'jq'
24
)
25
options=(
26
'!strip'
27
'!emptydirs'
28
)
29
source=(
30
"${pkgname}-${pkgver}::git+${url}#tag=${pkgver}"
31
"${pkgname}.sh"
32
)
33
sha256sums=('07ce4ee42d6f876db47ccb5d14b29dccbe173721cc23300d71aa383d5ed40d45'
34
'31ad33b633744f5361abd964be306cea53ae1050e760c787115f7eca60045ae6')
35
_ensure_local_nvm() {
36
local NVM_DIR="${srcdir}/.nvm"
37
source /usr/share/nvm/init-nvm.sh || [[ $? != 1 ]]
38
nvm install "${_nodeversion}"
39
nvm use "${_nodeversion}"
40
}
41
_get_electron_version() {
42
_elec_ver=$(jq -r '.devDependencies["electron"] // .dependencies["electron"]' "${srcdir}/${pkgname}-${pkgver}/package.json" | tr -d '^')
43
_main_ver=$(echo "${_elec_ver}" | cut -d. -f1)
44
echo -e "The electron version is: \033[1;31m${_main_ver}\033[0m"
45
}
46
prepare() {
47
cd "${srcdir}/${pkgname}-${pkgver}"
48
_get_electron_version
49
sed -i -e "
50
s/@electronversion@/${_electronversion}/g
51
s/@appname@/${pkgname}/g
52
s/@runname@/app/g
53
s/@cfgdirname@/${_pkgname}/g
54
s/@options@//g
55
" "${srcdir}/${pkgname}.sh"
56
gendesk -q -f -n \
57
--pkgname="${pkgname}" \
58
--pkgdesc="${pkgdesc}" \
59
--categories="Utility" \
60
--name="${pkgname}" \
61
--exec="${pkgname} %U"
62
export ELECTRON_SKIP_BINARY_DOWNLOAD=1
63
export SYSTEM_ELECTRON_VERSION="$(electron${_electronversion} -v | sed 's/v//g')"
64
HOME="${srcdir}/.electron-gyp"
65
{
66
echo -e '\n'
67
#echo 'build_from_source=true'
68
echo "cache=${srcdir}/.npm_cache"
69
echo "maxsockets=10"
70
} >> .npmrc
71
if [[ "$(curl -s ipinfo.io/country)" == *"CN"* ]]; then
72
{
73
echo 'registry=https://registry.npmmirror.com'
74
echo 'electron_mirror=https://registry.npmmirror.com/-/binary/electron/'
75
echo 'electron_builder_binaries_mirror=https://registry.npmmirror.com/-/binary/electron-builder-binaries/'
76
} >> .npmrc
77
find ./ -type f -name "package-lock.json" -exec sed -i "s/registry.npmjs.org/registry.npmmirror.com/g" {} +
78
fi
79
_ensure_local_nvm
80
sed -i "s/\"electron\": \"[^\"]*\"/\"electron\": \"${SYSTEM_ELECTRON_VERSION}\"/g" package.json
81
NODE_ENV=development npm install
82
}
83
build() {
84
cd "${srcdir}/${pkgname}-${pkgver}"
85
_ensure_local_nvm
86
NODE_ENV=production npx electron-packager . --platform=linux --icon=src/icons/icon.png --out=dist --overwrite
87
}
88
package() {
89
install -Dm755 "${srcdir}/${pkgname}.sh" "${pkgdir}/usr/bin/${pkgname}"
90
install -Dm755 -d "${pkgdir}/usr/lib/${pkgname}"
91
cp -Pr --no-preserve=ownership "${srcdir}/${pkgname}-${pkgver}/dist/${_pkgname}-linux-"*/resources/app "${pkgdir}/usr/lib/${pkgname}"
92
install -Dm644 "${srcdir}/${pkgname}-${pkgver}/${pkgname}.desktop" -t "${pkgdir}/usr/share/applications"
93
install -Dm644 "${srcdir}/${pkgname}-${pkgver}/src/icons/icon.png" "${pkgdir}/usr/share/pixmaps/${pkgname}.png"
94
install -Dm644 "${srcdir}/${pkgname}-${pkgver}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}"
95
}
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 |