jscast-git

maintainer zxp19821005 · 0 votes · scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged The npm install is part of building the project from source and uses dependencies declared in the project's own package.json; the flagged 'external package' addition is actually a development-time plugin required for local Electron integration, consistent with the build process.

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 npm install is part of building the project from source and uses dependencies declared in the project's own package.json; the flagged 'external package' addition is actually a development-time plugin required for local Electron integration, consistent with the build process.

1 higher static finding superseded - not the current verdict (shown for transparency)
MEDIUM npm/yarn/pnpm install of an undeclared external package npm_install_external

Runs `npm/yarn/pnpm install <package>` for a package not in source=(), pulling unpinned, unreviewed code at build time. Severity downgraded: the package declares/looks like a Node.js consumer, where build-time installs are expected.

  • PKGBUILD:76 NODE_ENV=development npm add -D @electron-forge/plugin-local-electron

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
2pkgname=jscast-git
3_pkgname=JSCast
4pkgver=1.6.0.r12.gdc9616a
5_electronversion=11
6_nodeversion=16
7pkgrel=1
8pkgdesc="🎥💻 Screen recorder with some options like adding your webcam in a square, or a circle, that you can move around.(Use system-wide electron)"
9arch=('any')
10url="https://github.com/jhedev96/jscast-app"
11license=('MIT')
12depends=(
13 "electron${_electronversion}"
14)
15makedepends=(
16 'npm'
17 'nvm'
18 'git'
19 'curl'
20 'gendesk'
21)
22source=(
23 "${pkgname//-/.}::git+${url}.git"
24 "${pkgname%-git}.sh"
25)
26sha256sums=('SKIP'
27 '291f50480f5a61bc9c68db7d44cd0412071128706baa868a9cb854f8779a1980')
28pkgver() {
29 cd "${srcdir}/${pkgname//-/.}"
30 set -o pipefail
31 git describe --long --tags --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/v//g' ||
32 printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
33}
34_ensure_local_nvm() {
35 local NVM_DIR="${srcdir}/.nvm"
36 source /usr/share/nvm/init-nvm.sh || [[ $? != 1 ]]
37 nvm install "${_nodeversion}"
38 nvm use "${_nodeversion}"
39}
40prepare() {
41 cd "${srcdir}/${pkgname//-/.}"
42 sed -i -e "
43 s/@electronversion@/${_electronversion}/g
44 s/@appname@/${pkgname%-git}/g
45 s/@runname@/app/g
46 s/@cfgdirname@/${pkgname%-git}/g
47 s/@options@//g
48 " "${srcdir}/${pkgname%-git}.sh"
49 _ensure_local_nvm
50 gendesk -q -f -n \
51 --pkgname="${pkgname%-git}" \'
52 --pkgdesc="${pkgdesc}" \
53 --categories="Utility" \
54 --name="${_pkgname}" \
55 --exec="${pkgname%-git} %U"
56 export ELECTRON_SKIP_BINARY_DOWNLOAD=1
57 export SYSTEM_ELECTRON_VERSION="$(electron${_electronversion} -v | sed 's/v//g')"
58 HOME="${srcdir}/.electron-gyp"
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 find ./ -type f -name "package-lock.json" -exec sed -i "s/registry.npmjs.org/registry.npmmirror.com/g" {} +
72 fi
73 sed -i "s/${pkgname%-git}-icon.ico/Logo.png/g" src/index.js
74 sed -i "s/\"electron\": \"[^\"]*\"/\"electron\": \"${SYSTEM_ELECTRON_VERSION}\"/g" package.json
75 NODE_ENV=development npm install --leagcy-peer-deps
76 NODE_ENV=development npm add -D @electron-forge/plugin-local-electron
77}
78build() {
79 cd "${srcdir}/${pkgname//-/.}"
80 local electronDist="/usr/lib/electron${_electronversion}"
81 sed -i '/"makers": \[/i\
82 "plugins": [\
83 {\
84 "name": "@electron-forge/plugin-local-electron",\
85 "config": {\
86 "electronPath": "'"${electronDist}"'"\
87 }\
88 }\
89 ],' package.json
90 NODE_ENV=production npm run package
91}
92package() {
93 install -Dm755 "${srcdir}/${pkgname%-git}.sh" "${pkgdir}/usr/bin/${pkgname%-git}"
94 install -Dm755 -d "${pkgdir}/usr/lib/${pkgname%-git}"
95 cp -Pr --no-preserve=ownership "${srcdir}/${pkgname//-/.}/out/${pkgname%-git}-linux-"*/resources/app "${pkgdir}/usr/lib/${pkgname%-git}"
96 install -Dm644 "${srcdir}/${pkgname//-/.}/src/assets/Logo.png" "${pkgdir}/usr/share/pixmaps/${pkgname%-git}.png"
97 install -Dm644 "${srcdir}/${pkgname//-/.}/${pkgname%-git}.desktop" -t "${pkgdir}/usr/share/applications"
98 install -Dm644 "${srcdir}/${pkgname//-/.}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}"
99}

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