edex-ui
maintainer zxp19821005
· 13 votes
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged
The use of npx to run local build scripts (prebuild-minify.js, electron-builder) is part of the project's normal build process from its own source; no remote code execution or untrusted payloads are involved.
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 use of npx to run local build scripts (prebuild-minify.js, electron-builder) is part of the project's normal build process from its own source; no remote code execution or untrusted payloads are involved.
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=development npx node prebuild-minify.js -
PKGBUILD:90
NODE_ENV=production npx electron-builder --linux dir -c.electronDist="${electronDist}"
PKGBUILD
2 offending line(s) highlighted
1
# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
2
# Contributor: Lucas Malandrino <lucas.malandrino@gmail.com>
3
# Contributor & author of the original software: Gabriel Saillard <gabriel@saillard.dev>
4
pkgname=edex-ui
5
_pkgname=eDEX-UI
6
pkgver=2.2.8
7
_electronversion=12
8
_nodeversion=14
9
pkgrel=3
10
pkgdesc="A cross-platform, customizable science fiction terminal emulator with advanced monitoring & touchscreen support.(Use system-wide electron)"
11
arch=('any')
12
url='https://github.com/GitSquared/edex-ui'
13
license=('GPL-3.0-only')
14
depends=(
15
"electron${_electronversion}"
16
)
17
makedepends=(
18
'nvm'
19
'npm'
20
'python2'
21
'rsync'
22
'git'
23
'curl'
24
'gendesk'
25
)
26
source=(
27
"${pkgname}-${pkgver}::git+${url}#tag=v${pkgver}"
28
"${pkgname}.sh"
29
)
30
sha256sums=('248e3ef1a7823b99e1860979a45ccf0702e60d58dfdfd53701c18916ac90d3ca'
31
'291f50480f5a61bc9c68db7d44cd0412071128706baa868a9cb854f8779a1980')
32
_ensure_local_nvm() {
33
local NVM_DIR="${srcdir}/.nvm"
34
source /usr/share/nvm/init-nvm.sh || [[ $? != 1 ]]
35
nvm install "${_nodeversion}"
36
nvm use "${_nodeversion}"
37
}
38
prepare() {
39
cd "${srcdir}/${pkgname}-${pkgver}"
40
sed -i -e "
41
s/@electronversion@/${_electronversion}/g
42
s/@appname@/${pkgname}/g
43
s/@runname@/app.asar/g
44
s/@cfgdirname@/${_pkgname}/g
45
s/@options@//g
46
" "${srcdir}/${pkgname}.sh"
47
_ensure_local_nvm
48
gendesk -q -f -n \
49
--pkgname="${pkgname}" \
50
--pkgdesc="${pkgdesc}" \
51
--categories="System;Utility" \
52
--name="${_pkgname}" \
53
--exec="${pkgname} %U"
54
export ELECTRON_SKIP_BINARY_DOWNLOAD=1
55
export SYSTEM_ELECTRON_VERSION="$(electron${_electronversion} -v | sed 's/v//g')"
56
export PYTHON="/usr/bin/python2"
57
HOME="${srcdir}/.electron-gyp"
58
mkdir -p prebuild-src
59
{
60
echo -e '\n'
61
#echo 'build_from_source=true'
62
echo "cache=${srcdir}/.npm_cache"
63
echo "maxsockets=10"
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
cp .npmrc prebuild-src
72
sed -i -e "
73
s/github.com/github.moeyy.xyz\/https:\/\/github.com/g
74
/danklammer/d
75
" .gitmodules
76
echo " url = https://github.moeyy.xyz/https://github.com/danklammer/bytesize-icons.git" >> .gitmodules
77
find ./ -type f -name "package-lock.json" -exec sed -i "s/registry.npmjs.org/registry.npmmirror.com/g" {} +
78
fi
79
sed -i "s/\"electron\": \"[^\"]*\"/\"electron\": \"${SYSTEM_ELECTRON_VERSION}\"/g" package.json
80
git submodule update --depth=1 --init --recursive
81
NODE_ENV=development npm install --legacy-peer-deps
82
rsync -a --info=progress2 src/ prebuild-src --exclude node_modules
83
NODE_ENV=development npx node prebuild-minify.js
84
cd "${srcdir}/${pkgname}-${pkgver}/prebuild-src"
85
NODE_ENV=development npm install --legacy-peer-deps
86
}
87
build() {
88
cd "${srcdir}/${pkgname}-${pkgver}"
89
local electronDist="/usr/lib/electron${_electronversion}"
90
NODE_ENV=production npx electron-builder --linux dir -c.electronDist="${electronDist}"
91
}
92
package() {
93
install -Dm755 "${srcdir}/${pkgname}.sh" "${pkgdir}/usr/bin/${pkgname}"
94
install -Dm644 "${srcdir}/${pkgname}-${pkgver}/dist/linux-"*/resources/app.asar -t "${pkgdir}/usr/lib/${pkgname}"
95
_icon_sizes=(16x16 24x24 32x32 48x48 64x64 96x96 128x128 256x256 512x512)
96
for _icons in "${_icon_sizes[@]}";do
97
install -Dm644 "${srcdir}/${pkgname}-${pkgver}/media/linuxIcons/${_icons}.png" \
98
"${pkgdir}/usr/share/icons/hicolor/${_icons}/apps/${pkgname}.png"
99
done
100
install -Dm644 "${srcdir}/${pkgname}-${pkgver}/${pkgname}.desktop" -t "${pkgdir}/usr/share/applications"
101
install -Dm644 "${srcdir}/${pkgname}-${pkgver}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}"
102
}
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 |