mineradio-vision-git

MEDIUM
maintainer zxp19821005 0 votes scanned 2026-10-17 00:21:55.226236
View on AUR
Why flagged

The build uses 'bunx electron-builder' to execute a remote package, which poses a supply-chain risk if the bunx command fetches unreviewed code at runtime despite building from a git source.

Triggered rules

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:108 bunx electron-builder --linux dir -c.electronDist="${ELECTRON_DIST}"
Medium AI review llm_review

An AI model (qwen/qwen3-235b-a22b-2507) reviewed this and agrees it is MEDIUM (confidence 85%): The build uses 'bunx electron-builder' to execute a remote package, which poses a supply-chain risk if the bunx command fetches unreviewed code at runtime despite building from a git source.

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
2pkgname=mineradio-vision-git
3_pkgname=Mineradio-Vision
4pkgver=3.0.1.r9.g4618ced
5_electronversion=42
6_nodeversion=24
7pkgrel=1
8pkgdesc="Learning-purpose fork of Mineradio with Kugou/Qishui/Spotify integration, LiquidGlass visuals and modular architecture."
9arch=('any')
10url="https://github.com/moli-lihuashi/Mineradio-Vision"
11license=('GPL-3.0-or-later')
12conflicts=("${pkgname%-git}")
13provides=("${pkgname%-git}=${pkgver%.r*}")
14depends=(
15 "electron${_electronversion}"
16)
17makedepends=(
18 'gendesk'
19 'bun'
20 'nvm'
21 'git'
22 'curl'
23 'jq'
24)
25source=(
26 "${pkgname%-git}.git::git+${url}"
27 "${pkgname%-git}.sh"
28)
29sha256sums=('SKIP'
30 'a774c2f54fbbeeaac3cefc0f7250796d30c86d27f0fd40b7eaf9c0fdb021623d')
31pkgver() {
32 cd "${srcdir}/${pkgname%-git}.git"
33 set -o pipefail
34 git describe --long --tags --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/v//g' ||
35 printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
36}
37_ensure_local_nvm() {
38 local NVM_DIR="${srcdir}/.nvm"
39 source /usr/share/nvm/init-nvm.sh || [[ $? != 1 ]]
40 nvm install "${_nodeversion}"
41 nvm use "${_nodeversion}"
42}
43_get_app_dir() {
44 find "${srcdir}" -type f -name "resources.pak" -exec dirname {} + | head -n 1
45}
46_get_electron_version() {
47 _elec_ver=$(find "${srcdir}" -maxdepth 5 -name "package.json" ! -path "*/node_modules/*" \
48 -exec grep -l '"electron"' {} + | xargs -I{} jq -r '(.devDependencies.electron // .dependencies.electron) // empty' {} 2>/dev/null | head -1)
49 [[ -z "${_elec_ver}" ]] && return 1
50 echo -e "The electron version is: \033[1;31m${_elec_ver%%.*}\033[0m"
51}
52_set_build_env() {
53 export ELECTRON_DIST="/usr/lib/electron${_electronversion}"
54 export ELECTRON_OVERRIDE_DIST_PATH="${ELECTRON_DIST}"
55 export ELECTRON_SKIP_BINARY_DOWNLOAD=1
56 _ev="$(electron${_electronversion} -v)"
57 export SYSTEM_ELECTRON_VERSION="${_ev#v}"
58 export NODE_OPTIONS="--max-old-space-size=4096"
59 export HOME="${srcdir}/.electron-gyp"
60 export XDG_CACHE_HOME="${srcdir}/.cache"
61 export XDG_CONFIG_HOME="${srcdir}/.config"
62 export XDG_DATA_HOME="${srcdir}/.local/share"
63 export npm_config_platform=linux
64 export npm_config_arch="${CARCH}"
65 export npm_config_cache="${srcdir}/.npm"
66 export BUN_INSTALL_CACHE_DIR="${srcdir}/.bun/cache"
67 export BUN_INSTALL_GLOBAL_DIR="${srcdir}/.bun/global"
68 export BUN_INSTALL_BIN="${srcdir}/.bun/bin"
69 export BUN_CONFIG_SKIP_SAVE_LOCKFILE=1
70 export BUN_JOBS="${MAKEFLAGS:--j$(nproc)}"
71 export BUN_DISABLE_DOTENV=1
72 export DO_NOT_TRACK=1
73}
74prepare() {
75 cd "${srcdir}/${pkgname%-git}.git"
76 _get_electron_version
77 sed -i -e "
78 s/@electronversion@/${_electronversion}/g
79 s/@appname@/${pkgname%-git}/g
80 s/@runname@/app.asar/g
81 s/@cfgdirname@/${_pkgname%-Vision}/g
82 " "${srcdir}/${pkgname%-git}.sh"
83 gendesk -q -f -n \
84 --pkgname="${pkgname%-git}" \
85 --pkgdesc="${pkgdesc}" \
86 --categories="Development" \
87 --name="${_pkgname}" \
88 --exec="${pkgname%-git} %U"
89 _set_build_env
90 _ensure_local_nvm
91 sed -i -e "
92 s/\"asar\"\: false\,/\"asar\"\: true\,/g
93 s/\"electron\": \"[^\"]*\"/\"electron\": \"${SYSTEM_ELECTRON_VERSION}\"/g
94 " package.json
95 # Fix Windows-only ANGLE backend (d3d11) for Linux compatibility
96 sed -i "s/\['use-angle', 'd3d11'\]/['use-angle', 'gl']/g" desktop/main.js
97 # Fix Linux taskbar icon: use PNG instead of ICO, and set proper appUserModelId
98 sed -i "s|const APP_ICON_ICO = path.join(__dirname, '..', 'build', 'icon.ico');|const APP_ICON_ICO = path.join(__dirname, '..', 'build', 'icon.png');|g" desktop/main.js
99 sed -i "s/const APP_USER_MODEL_ID = _BETA_META.appUserModelId || 'com.mineradio.desktop';/const APP_USER_MODEL_ID = '${pkgname%-git}';/g" desktop/main.js
100 # Remove corrupted package-lock.json (references non-existent is-fullwidth-code-point@3.0.1)
101 rm -f package-lock.json
102 bun install
103}
104build() {
105 cd "${srcdir}/${pkgname%-git}.git"
106 _set_build_env
107 _ensure_local_nvm
108 bunx electron-builder --linux dir -c.electronDist="${ELECTRON_DIST}"
109}
110package() {
111 install -Dm755 "${srcdir}/${pkgname%-git}.sh" "${pkgdir}/usr/bin/${pkgname%-git}"
112 install -Dm755 -d "${pkgdir}/usr/lib/${pkgname%-git}"
113 local _app_dir=$(_get_app_dir)
114 cp -a "${_app_dir}/resources/"* "${pkgdir}/usr/lib/${pkgname%-git}/"
115 rm -rf "${pkgdir}/usr/lib/${pkgname%-git}/default_app.asar"
116 install -Dm644 "${srcdir}/${pkgname%-git}.git/${pkgname%-git}.desktop" -t "${pkgdir}/usr/share/applications"
117 install -Dm644 "${srcdir}/${pkgname%-git}.git/build/icon.png" "${pkgdir}/usr/share/pixmaps/${pkgname%-git}.png"
118 install -Dm644 "${srcdir}/${pkgname%-git}.git/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}"
119}
120

Scan history

Scanned at (UTC)SeverityRules
2026-10-17 00:21:55 Medium 2
2026-10-16 00:12:47 Medium 2
2026-10-15 00:28:05 Medium 2
2026-10-14 00:06:47 Medium 2
2026-10-13 00:23:45 Medium 2
2026-10-12 00:18:51 Medium 2
2026-10-11 00:26:05 Medium 2
2026-10-10 00:11:52 Medium 2
2026-10-09 00:05:33 Medium 2
2026-10-08 00:28:03 Medium 2
2026-10-07 00:21:34 Medium 2
2026-10-06 00:13:36 Medium 2
2026-10-05 00:08:03 Medium 2
2026-10-04 00:18:08 Medium 2
2026-10-03 00:23:04 Medium 2
2026-10-02 00:00:32 Medium 2
2026-10-01 00:02:06 Medium 2
2026-09-30 00:20:07 Medium 2
2026-09-29 00:07:46 Medium 2
2026-09-28 00:28:32 Medium 2

Report a package

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

0 / 4000
Your suggestion