octa-electron

maintainer zxp19821005 · 0 votes · scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged The pnpm add of tsx@latest is a development-time dependency for building the project and does not introduce untrusted remote code execution; the source is the project's own repository, and the package is built from verified upstream 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 pnpm add of tsx@latest is a development-time dependency for building the project and does not introduce untrusted remote code execution; the source is the project's own repository, and the package is built from verified upstream code.

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:74 NODE_ENV=production pnpm add -D tsx@latest

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
2pkgname=octa-electron
3pkgver=2.0.1
4_electronversion=24
5_nodeversion=18
6pkgrel=6
7pkgdesc="Svelte-based app for developing vocabulary wrapped in electron.(Use system-wide electron)"
8arch=('any')
9url="https://github.com/MeroVinggen/octa-electron"
10license=('LicenseRef-unknown')
11conflicts=("${pkgname}")
12depends=(
13 "electron${_electronversion}"
14)
15makedepends=(
16 'gendesk'
17 'nvm'
18 'npm'
19 'curl'
20 'pnpm'
21 'icoutils'
22 'git'
23)
24source=(
25 "${pkgname}-${pkgver}::git+${url}#tag=v${pkgver}"
26 "${pkgname}.sh"
27)
28sha256sums=('3df1cac0daa7e2387fc9726465c85b10ee69ae5949279a9d5f1d235480763126'
29 '291f50480f5a61bc9c68db7d44cd0412071128706baa868a9cb854f8779a1980')
30_ensure_local_nvm() {
31 local NVM_DIR="${srcdir}/.nvm"
32 source /usr/share/nvm/init-nvm.sh || [[ $? != 1 ]]
33 nvm install "${_nodeversion}"
34 nvm use "${_nodeversion}"
35}
36prepare() {
37 sed -i -e "
38 s/@electronversion@/${_electronversion}/g
39 s/@appname@/${pkgname}/g
40 s/@runname@/app.asar/g
41 s/@cfgdirname@/${_pkgname}/g
42 s/@options@//g
43 " "${srcdir}/${pkgname}.sh"
44 _ensure_local_nvm
45 gendesk -f -n -q --pkgname="${pkgname}" --pkgdesc="${pkgdesc}" --categories="Utility" --name="${pkgname}" --exec="${pkgname} %U"
46 cd "${srcdir}/${pkgname}-${pkgver}"
47 export ELECTRON_SKIP_BINARY_DOWNLOAD=1
48 export SYSTEM_ELECTRON_VERSION="$(electron${_electronversion} -v | sed 's/v//g')"
49 HOME="${srcdir}/.electron-gyp"
50 {
51 echo -e '\n'
52 #echo 'build_from_source=true'
53 echo 'link-workspace-packages=true'
54 echo 'fetch-retry-maxtimeout=10000'
55 echo "cache-dir="${srcdir}"/.pnpm_cache"
56 echo "store-dir="${srcdir}"/.pnpm_store"
57 echo "shamefully-hoist=true"
58 echo "virtual-store-dir-max-length=80"
59 echo "node-linker=hoisted"
60 echo "network-concurrency=10"
61 } >> .npmrc
62 if [[ "$(curl -s ipinfo.io/country)" == *"CN"* ]]; then
63 {
64 echo 'registry=https://registry.npmmirror.com'
65 echo 'electron_mirror=https://cdn.npmmirror.com/binaries/electron/'
66 echo 'electron_builder_binaries_mirror=https://npmmirror.com/mirrors/electron-builder-binaries/'
67 } >> .npmrc
68 fi
69 sed -i "s/icon\.ico/icon\.png/g" src/main/tray/initAppTray.ts
70 icotool -i 8 -x resources/icon.ico -o build/icon.png
71 cp build/icon.png resources/icon.png
72 sed -i "s/\"electron\": \"[^\"]*\"/\"electron\": \"${SYSTEM_ELECTRON_VERSION}\"/g" package.json
73 NODE_ENV=development pnpm install
74 NODE_ENV=production pnpm add -D tsx@latest
75}
76build() {
77 cd "${srcdir}/${pkgname}-${pkgver}"
78 local electronDist="/usr/lib/electron${_electronversion}"
79 NODE_ENV=development pnpm -c electron-vite build
80 NODE_ENV=development pnpm run after-build-renderers
81 NODE_ENV=production pnpm -c exec "electron-builder --linux dir -c.electronDist=${electronDist}"
82}
83package() {
84 install -Dm755 "${srcdir}/${pkgname}.sh" "${pkgdir}/usr/bin/${pkgname}"
85 install -Dm644 "${srcdir}/${pkgname}-${pkgver}/dist/linux-"*/resources/app.asar -t "${pkgdir}/usr/lib/${pkgname}"
86 cp -Pr --no-preserve=ownership "${srcdir}/${pkgname}-${pkgver}/dist/linux-"*/resources/app.asar.unpacked "${pkgdir}/usr/lib/${pkgname}"
87 install -Dm644 "${srcdir}/${pkgname}-${pkgver}/resources/icon.png" "${pkgdir}/usr/share/pixmaps/${pkgname}.png"
88 install -Dm644 "${srcdir}/${pkgname}.desktop" -t "${pkgdir}/usr/share/applications"
89}

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