akuse

maintainer orphaned · 2 votes · scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged The npx command runs a local build script (ts-node ./.erb/scripts/clean.js) from the project's own source, not a remote package, so the flagged pattern is a false positive; the build is self-contained and uses verified source 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 a local build script (ts-node ./.erb/scripts/clean.js) from the project's own source, not a remote package, so the flagged pattern is a false positive; the build is self-contained and uses verified source 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:73 NODE_ENV=production npx ts-node ./.erb/scripts/clean.js dist

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
2pkgname=akuse
3_pkgname=Akuse
4pkgver=1.10.1
5_electronversion=26
6_nodeversion=20
7pkgrel=2
8pkgdesc="Simple and easy to use anime streaming desktop app without ads.(Use system-wide electron)"
9arch=('any')
10url="https://github.com/akuse-app/Akuse"
11license=('GPL-3.0-or-later')
12conflicts=("${pkgname}")
13depends=(
14 "electron${_electronversion}"
15)
16makedepends=(
17 'gendesk'
18 'npm'
19 'nvm'
20 'curl'
21 'git'
22)
23source=(
24 "${pkgname}-${pkgver}::git+${url}#tag=${pkgver}"
25 "clientData.js"
26 "${pkgname}.sh"
27)
28sha256sums=('e2f96066de1dfe2ae55995f09b73400c6571aab4420323691b1df13abb1f5ad0'
29 '091d0d9b3a06579647ed4c1989d7edff13754cec34fcdbb7fbc24529bd01ed48'
30 '291f50480f5a61bc9c68db7d44cd0412071128706baa868a9cb854f8779a1980')
31_ensure_local_nvm() {
32 local NVM_DIR="${srcdir}/.nvm"
33 source /usr/share/nvm/init-nvm.sh || [[ $? != 1 ]]
34 nvm install "${_nodeversion}"
35 nvm use "${_nodeversion}"
36}
37prepare() {
38 cd "${srcdir}/${pkgname}-${pkgver}"
39 sed -i -e "
40 s/@electronversion@/${_electronversion}/g
41 s/@appname@/${pkgname}/g
42 s/@runname@/app.asar/g
43 s/@cfgdirname@/${pkgname}-beta/g
44 s/@options@//g
45 " "${srcdir}/${pkgname}.sh"
46 _ensure_local_nvm
47 gendesk -q -f -n --pkgname="${pkgname}" --pkgdesc="${pkgdesc}" --categories="AudioVideo" --name="${_pkgname}" --exec="${pkgname} %U"
48 export ELECTRON_SKIP_BINARY_DOWNLOAD=1
49 export SYSTEM_ELECTRON_VERSION="$(electron${_electronversion} -v | sed 's/v//g')"
50 HOME="${srcdir}/.electron-gyp"
51 {
52 echo -e '\n'
53 #echo 'build_from_source=true'
54 echo "cache=${srcdir}/.npm_cache"
55 echo "maxsockets=10"
56 } >> .npmrc
57 if [[ "$(curl -s ipinfo.io/country)" == *"CN"* ]]; then
58 {
59 echo 'registry=https://registry.npmmirror.com'
60 echo 'electron_mirror=https://registry.npmmirror.com/-/binary/electron/'
61 echo 'electron_builder_binaries_mirror=https://registry.npmmirror.com/-/binary/electron-builder-binaries/'
62 } >> .npmrc
63 find ./ -type f -name "package-lock.json" -exec sed -i "s/registry.npmjs.org/registry.npmmirror.com/g" {} +
64 fi
65 find src -type f -exec sed -i "s/process.resourcesPath/\'\/usr\/lib\/${pkgname}\'/g" {} \;
66 install -Dm644 "${srcdir}/clientData.js" -t "${srcdir}/${pkgname//-/.}/src/modules"
67 sed -i "s/\"electron\": \"[^\"]*\"/\"electron\": \"${SYSTEM_ELECTRON_VERSION}\"/g" package.json
68 NODE_ENV=development npm install
69}
70build() {
71 cd "${srcdir}/${pkgname}-${pkgver}"
72 local electronDist="/usr/lib/electron${_electronversion}"
73 NODE_ENV=production npx ts-node ./.erb/scripts/clean.js dist
74 NODE_ENV=production npm run build
75 NODE_ENV=production npm exec -c "electron-builder build --linux dir -c.electronDist=${electronDist}"
76}
77package() {
78 install -Dm755 "${srcdir}/${pkgname}.sh" "${pkgdir}/usr/bin/${pkgname}"
79 install -Dm644 "${srcdir}/${pkgname}-${pkgver}/release/build/linux-"*/resources/app.asar -t "${pkgdir}/usr/lib/${pkgname}"
80 cp -Pr --no-preserve=ownership "${srcdir}/${pkgname}-${pkgver}/release/build/linux-"*/resources/assets "${pkgdir}/usr/lib/${pkgname}"
81 install -Dm644 "${srcdir}/${pkgname}-${pkgver}/${pkgname}.desktop" -t "${pkgdir}/usr/share/applications"
82 _icon_sizes=(16x16 24x24 32x32 48x48 64x64 96x96 128x128 256x256 512x512 1024x1024)
83 for _icons in "${_icon_sizes[@]}";do
84 install -Dm644 "${srcdir}/${pkgname}-${pkgver}/assets/${_icons}.png" \
85 "${pkgdir}/usr/share/icons/hicolor/${_icons}/apps/${pkgname}.png"
86 done
87 install -Dm644 "${srcdir}/${pkgname}-${pkgver}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}"
88}

Scan history

Scanned at (UTC)SeverityRules
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

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion