recordly

maintainer zxp19821005 · 0 votes · scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged The package builds from the project's own GitHub source tarball with a verified checksum; the flagged 'npm add node-abi@latest' fetches a well-known npm utility, 'npx tsc' and 'npx vite build' run locally-installed project tools (not remote arbitrary scripts), and the CN mirror redirect is a common pattern in AUR packages targeting Chinese users rather than malicious traffic hijacking.

Triggered rules

LOW Few votes, recently uploaded zero_votes_recent

Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.

LOW AI review downgraded a static finding llm_review

The static rules flagged this MEDIUM, but an AI model (anthropic/claude-sonnet-4.6) reviewed the full PKGBUILD and judged it LOW (confidence 70%): The package builds from the project's own GitHub source tarball with a verified checksum; the flagged 'npm add node-abi@latest' fetches a well-known npm utility, 'npx tsc' and 'npx vite build' run locally-installed project tools (not remote arbitrary scripts), and the CN mirror redirect is a common pattern in AUR packages targeting Chinese users rather than malicious traffic hijacking.

2 higher static findings 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:80 NODE_ENV=development npm add -D node-abi@latest
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:88 NODE_ENV=production npx tsc
  • PKGBUILD:89 NODE_ENV=production npx vite build --config vite.config.ts

PKGBUILD

3 offending line(s) highlighted
1# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
2pkgname=recordly
3_pkgname=Recordly
4pkgver=1.3.3
5_electronversion=43
6_nodeversion=24
7pkgrel=1
8pkgdesc="Open-source screen recorder and editor with auto-zoom, cursor effects, and polished video export。(Use system-wide electron)"
9arch=('any')
10url="https://recordly.dev/"
11_ghurl="https://github.com/webadderallorg/Recordly"
12license=('AGPL-3.0-or-later')
13depends=(
14 "electron${_electronversion}"
15)
16makedepends=(
17 'npm'
18 'nvm'
19 'git'
20 'curl'
21 'yarn'
22 'jq'
23)
24source=(
25 "${pkgname}-${pkgver}.tar.gz::${_ghurl}/archive/refs/tags/v${pkgver}.tar.gz"
26 "${pkgname}.sh"
27)
28sha256sums=('a06141f547d644d5dd208fa26e826df3b063f727d2fd7dc884937611cf85a0c6'
29 'a774c2f54fbbeeaac3cefc0f7250796d30c86d27f0fd40b7eaf9c0fdb021623d')
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}
36_set_build_env() {
37 export ELECTRON_DIST="/usr/lib/electron${_electronversion}"
38 export ELECTRON_SKIP_BINARY_DOWNLOAD=1
39 export SYSTEM_ELECTRON_VERSION="$(electron${_electronversion} -v | sed 's/v//g')"
40 export HOME="${srcdir}/.electron-gyp"
41 export NPM_CONFIG_CACHE="${srcdir}/.npm_cache"
42 export NPM_CONFIG_MAXSOCKETS=32
43 if [[ "$(curl -s ipinfo.io/country)" == *"CN"* ]]; then
44 {
45 export NPM_CONFIG_REGISTRY="https://registry.npmmirror.com"
46 export NODEJS_ORG_MIRROR="https://npmmirror.com/mirrors/node"
47 export ELECTRON_MIRROR="https://npmmirror.com/mirrors/electron/"
48 export ELECTRON_BUILDER_BINARIES_MIRROR="https://npmmirror.com/mirrors/electron-builder-binaries/"
49 }
50 find ./ -type f -name "package-lock.json" -exec sed -i "s/registry.npmjs.org/registry.npmmirror.com/g" {} +
51 fi
52}
53_get_app_dir() {
54 find "${srcdir}" -type f -name "resources.pak" -exec dirname {} + | head -n 1
55}
56_get_electron_version() {
57 _elec_ver=$(find "${srcdir}" -maxdepth 5 -name "package.json" ! -path "*/node_modules/*" \
58 -exec grep -l '"electron"' {} + | xargs -I{} jq -r '(.devDependencies.electron // .dependencies.electron) // empty' {} 2>/dev/null | head -1)
59 [[ -z "${_elec_ver}" ]] && return 1
60 echo -e "The electron version is: \033[1;31m${_elec_ver%%.*}\033[0m"
61}
62prepare() {
63 cd "${srcdir}/${_pkgname}-${pkgver}"
64 sed -i -e "
65 s/@electronversion@/${_electronversion}/g
66 s/@appname@/${pkgname}/g
67 s/@runname@/app.asar/g
68 s/@cfgdirname@/${_pkgname}/g
69 " "${srcdir}/${pkgname}.sh"
70 gendesk -q -f -n \
71 --pkgname="${pkgname}" \
72 --pkgdesc="${pkgdesc}" \
73 --categories="AudioVideo;Utility" \
74 --name="${_pkgname}" \
75 --exec="${pkgname} %U"
76 _set_build_env
77 _ensure_local_nvm
78 sed -i "s/\"electron\": \"[^\"]*\"/\"electron\": \"${SYSTEM_ELECTRON_VERSION}\"/g" package.json
79 find src -type f -exec sed -i "s/process.resourcesPath/\'\/usr\/lib\/${pkgname}\'/g" {} +
80 NODE_ENV=development npm add -D node-abi@latest
81 NODE_ENV=development npm install --legacy-peer-deps
82}
83build() {
84 cd "${srcdir}/${_pkgname}-${pkgver}"
85 _set_build_env
86 _ensure_local_nvm
87 NODE_ENV=production npm run build:platform-native-helpers
88 NODE_ENV=production npx tsc
89 NODE_ENV=production npx vite build --config vite.config.ts
90 NODE_ENV=production npm run normalize:electron-main-cjs
91 NODE_ENV=production npm run smoke:electron-main-cjs
92 NODE_ENV=production npm exec -c "electron-builder --linux dir -c.electronDist=${ELECTRON_DIST}"
93}
94package() {
95 install -Dm755 "${srcdir}/${pkgname}.sh" "${pkgdir}/usr/bin/${pkgname}"
96 install -Dm755 -d "${pkgdir}/usr/lib/${pkgname}"
97 local _app_dir=$(_get_app_dir)
98 cp -a "${_app_dir}/resources/"* "${pkgdir}/usr/lib/${pkgname}/"
99 rm -rf "${pkgdir}/usr/lib/${pkgname}/default_app.asar"
100 icon_sizes=(16x16 24x24 32x32 48x48 64x64 128x128 256x256 512x512 1024x1024)
101 for _icons in "${icon_sizes[@]}";do
102 install -Dm644 "${srcdir}/${_pkgname}-${pkgver}/icons/icons/png/${_icons}.png" \
103 "${pkgdir}/usr/share/icons/hicolor/${_icons}/apps/${pkgname}.png"
104 done
105 install -Dm644 "${srcdir}/${_pkgname}-${pkgver}/${pkgname}.desktop" -t "${pkgdir}/usr/share/applications"
106 install -Dm644 "${srcdir}/${_pkgname}-${pkgver}/LICENSE.md" -t "${pkgdir}/usr/share/licenses/${pkgname}"
107}

Scan history

Scanned at (UTC)SeverityRules
2026-08-03 00:08:14 LOW 4
2026-08-02 00:16:08 LOW 4
2026-08-01 00:11:18 LOW 4
2026-07-31 00:14:10 LOW 4
2026-07-30 00:17:23 LOW 4
2026-07-29 11:14:58 LOW 4
2026-07-29 11:11:22 MEDIUM 3

Report a package

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

0 / 4000
Your suggestion