tts-vue
maintainer zxp19821005
· 0 votes
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged
The npx commands in build() are used to run project-local development tools (vue-tsc, vite, electron-builder) on the project's own source code, which is fetched from the official GitHub repository; this is standard practice for building Electron applications and does not constitute executing 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 90%): The npx commands in build() are used to run project-local development tools (vue-tsc, vite, electron-builder) on the project's own source code, which is fetched from the official GitHub repository; this is standard practice for building Electron applications and does not constitute executing 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:70
NODE_ENV=production npx vue-tsc --noEmit -
PKGBUILD:71
NODE_ENV=production npx vite build
PKGBUILD
2 offending line(s) highlighted
1
# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
2
pkgname=tts-vue
3
pkgver=1.9.15
4
_electronversion=19
5
_nodeversion=18
6
pkgrel=10
7
pkgdesc="Microsoft speech synthesis tool, built using Electron+Vue+ElementPlus+Vite.(Use system-wide electron)微软语音合成工具,使用Electron+Vue+ElementPlus+Vite构建。"
8
arch=('x86_64')
9
url="https://tts-doc.loker.vip/home.html"
10
_ghurl="https://github.com/LokerL/tts-vue"
11
license=('MIT')
12
conflicts=("${pkgname}")
13
depends=(
14
"electron${_electronversion}"
15
)
16
makedepends=(
17
'gendesk'
18
'nvm'
19
'npm'
20
'curl'
21
'git'
22
)
23
source=(
24
"${pkgname}-${pkgver}::git+${_ghurl}#tag=${pkgver}"
25
"${pkgname}.sh"
26
)
27
sha256sums=('a070c7728fb24a093a86a38c1e4e2bfe6261dcab1bfc0072fbacfb5ceb0e6fa2'
28
'291f50480f5a61bc9c68db7d44cd0412071128706baa868a9cb854f8779a1980')
29
_ensure_local_nvm() {
30
local NVM_DIR="${srcdir}/.nvm"
31
source /usr/share/nvm/init-nvm.sh || [[ $? != 1 ]]
32
nvm install "${_nodeversion}"
33
nvm use "${_nodeversion}"
34
}
35
prepare() {
36
sed -i -e "
37
s/@electronversion@/${_electronversion}/g
38
s/@appname@/${pkgname}/g
39
s/@runname@/app.asar/g
40
s/@cfgdirname@/${pkgname}/g
41
s/@options@//g
42
" "${srcdir}/${pkgname}.sh"
43
_ensure_local_nvm
44
gendesk -q -f -n --pkgname="${pkgname}" --pkgdesc="${pkgdesc}" --name="${pkgname}" --categories="Utility" --exec="${pkgname} %U"
45
cd "${srcdir}/${pkgname}-${pkgver}"
46
export ELECTRON_SKIP_BINARY_DOWNLOAD=1
47
export SYSTEM_ELECTRON_VERSION="$(electron${_electronversion} -v | sed 's/v//g')"
48
HOME="${srcdir}/.electron-gyp"
49
{
50
echo -e '\n'
51
#echo 'build_from_source=true'
52
echo "cache=${srcdir}/.npm_cache"
53
echo "maxsockets=10"
54
} >> .npmrc
55
if [[ "$(curl -s ipinfo.io/country)" == *"CN"* ]]; then
56
{
57
echo 'registry=https://registry.npmmirror.com'
58
echo 'electron_mirror=https://registry.npmmirror.com/-/binary/electron/'
59
echo 'electron_builder_binaries_mirror=https://registry.npmmirror.com/-/binary/electron-builder-binaries/'
60
} >> .npmrc
61
find ./ -type f -name "package-lock.json" -exec sed -i "s/registry.npmjs.org/registry.npmmirror.com/g" {} +
62
fi
63
sed -i "s/\"electron\": \"[^\"]*\"/\"electron\": \"${SYSTEM_ELECTRON_VERSION}\"/g" package.json
64
sed -i "s/\/\${version}//g" electron-builder.json5
65
NODE_ENV=development npm install --legacy-peer-deps
66
}
67
build() {
68
cd "${srcdir}/${pkgname}-${pkgver}"
69
local electronDist="/usr/lib/electron${_electronversion}"
70
NODE_ENV=production npx vue-tsc --noEmit
71
NODE_ENV=production npx vite build
72
NODE_ENV=production npm exec -c "electron-builder --linux dir -c.electronDist=${electronDist} --config electron-builder.json5"
73
}
74
package() {
75
install -Dm755 "${srcdir}/${pkgname}.sh" "${pkgdir}/usr/bin/${pkgname}"
76
install -Dm644 "${srcdir}/${pkgname}-${pkgver}/release/linux-"*/resources/app.asar -t "${pkgdir}/usr/lib/${pkgname}"
77
install -Dm644 "${srcdir}/${pkgname}-${pkgver}/dist/node.png" -t "${pkgdir}/usr/share/pixmaps/${pkgname}.png"
78
install -Dm644 "${srcdir}/${pkgname}.desktop" -t "${pkgdir}/usr/share/applications"
79
install -Dm644 "${srcdir}/${pkgname}-${pkgver}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}"
80
}
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 |