mineradio-vision-git
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
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}"
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# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
pkgname=mineradio-vision-git
_pkgname=Mineradio-Vision
pkgver=3.0.1.r9.g4618ced
_electronversion=42
_nodeversion=24
pkgrel=1
pkgdesc="Learning-purpose fork of Mineradio with Kugou/Qishui/Spotify integration, LiquidGlass visuals and modular architecture."
arch=('any')
url="https://github.com/moli-lihuashi/Mineradio-Vision"
license=('GPL-3.0-or-later')
conflicts=("${pkgname%-git}")
provides=("${pkgname%-git}=${pkgver%.r*}")
depends=(
"electron${_electronversion}"
)
makedepends=(
'gendesk'
'bun'
'nvm'
'git'
'curl'
'jq'
)
source=(
"${pkgname%-git}.git::git+${url}"
"${pkgname%-git}.sh"
)
sha256sums=('SKIP'
'a774c2f54fbbeeaac3cefc0f7250796d30c86d27f0fd40b7eaf9c0fdb021623d')
pkgver() {
cd "${srcdir}/${pkgname%-git}.git"
set -o pipefail
git describe --long --tags --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/v//g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}
_ensure_local_nvm() {
local NVM_DIR="${srcdir}/.nvm"
source /usr/share/nvm/init-nvm.sh || [[ $? != 1 ]]
nvm install "${_nodeversion}"
nvm use "${_nodeversion}"
}
_get_app_dir() {
find "${srcdir}" -type f -name "resources.pak" -exec dirname {} + | head -n 1
}
_get_electron_version() {
_elec_ver=$(find "${srcdir}" -maxdepth 5 -name "package.json" ! -path "*/node_modules/*" \
-exec grep -l '"electron"' {} + | xargs -I{} jq -r '(.devDependencies.electron // .dependencies.electron) // empty' {} 2>/dev/null | head -1)
[[ -z "${_elec_ver}" ]] && return 1
echo -e "The electron version is: \033[1;31m${_elec_ver%%.*}\033[0m"
}
_set_build_env() {
export ELECTRON_DIST="/usr/lib/electron${_electronversion}"
export ELECTRON_OVERRIDE_DIST_PATH="${ELECTRON_DIST}"
export ELECTRON_SKIP_BINARY_DOWNLOAD=1
_ev="$(electron${_electronversion} -v)"
export SYSTEM_ELECTRON_VERSION="${_ev#v}"
export NODE_OPTIONS="--max-old-space-size=4096"
export HOME="${srcdir}/.electron-gyp"
export XDG_CACHE_HOME="${srcdir}/.cache"
export XDG_CONFIG_HOME="${srcdir}/.config"
export XDG_DATA_HOME="${srcdir}/.local/share"
export npm_config_platform=linux
export npm_config_arch="${CARCH}"
export npm_config_cache="${srcdir}/.npm"
export BUN_INSTALL_CACHE_DIR="${srcdir}/.bun/cache"
export BUN_INSTALL_GLOBAL_DIR="${srcdir}/.bun/global"
export BUN_INSTALL_BIN="${srcdir}/.bun/bin"
export BUN_CONFIG_SKIP_SAVE_LOCKFILE=1
export BUN_JOBS="${MAKEFLAGS:--j$(nproc)}"
export BUN_DISABLE_DOTENV=1
export DO_NOT_TRACK=1
}
prepare() {
cd "${srcdir}/${pkgname%-git}.git"
_get_electron_version
sed -i -e "
s/@electronversion@/${_electronversion}/g
s/@appname@/${pkgname%-git}/g
s/@runname@/app.asar/g
s/@cfgdirname@/${_pkgname%-Vision}/g
" "${srcdir}/${pkgname%-git}.sh"
gendesk -q -f -n \
--pkgname="${pkgname%-git}" \
--pkgdesc="${pkgdesc}" \
--categories="Development" \
--name="${_pkgname}" \
--exec="${pkgname%-git} %U"
_set_build_env
_ensure_local_nvm
sed -i -e "
s/\"asar\"\: false\,/\"asar\"\: true\,/g
s/\"electron\": \"[^\"]*\"/\"electron\": \"${SYSTEM_ELECTRON_VERSION}\"/g
" package.json
# Fix Windows-only ANGLE backend (d3d11) for Linux compatibility
sed -i "s/\['use-angle', 'd3d11'\]/['use-angle', 'gl']/g" desktop/main.js
# Fix Linux taskbar icon: use PNG instead of ICO, and set proper appUserModelId
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
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
# Remove corrupted package-lock.json (references non-existent is-fullwidth-code-point@3.0.1)
rm -f package-lock.json
bun install
}
build() {
cd "${srcdir}/${pkgname%-git}.git"
_set_build_env
_ensure_local_nvm
bunx electron-builder --linux dir -c.electronDist="${ELECTRON_DIST}"
}
package() {
install -Dm755 "${srcdir}/${pkgname%-git}.sh" "${pkgdir}/usr/bin/${pkgname%-git}"
install -Dm755 -d "${pkgdir}/usr/lib/${pkgname%-git}"
local _app_dir=$(_get_app_dir)
cp -a "${_app_dir}/resources/"* "${pkgdir}/usr/lib/${pkgname%-git}/"
rm -rf "${pkgdir}/usr/lib/${pkgname%-git}/default_app.asar"
install -Dm644 "${srcdir}/${pkgname%-git}.git/${pkgname%-git}.desktop" -t "${pkgdir}/usr/share/applications"
install -Dm644 "${srcdir}/${pkgname%-git}.git/build/icon.png" "${pkgdir}/usr/share/pixmaps/${pkgname%-git}.png"
install -Dm644 "${srcdir}/${pkgname%-git}.git/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 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 |