kunyin-desktop-bin

LOW
maintainer zxp19821005 0 votes scanned 2026-08-24 15:23:42.374088
View on AUR
Why flagged

The package installs a prebuilt .deb from the project's GitHub releases and uses system Electron; while the host is not whitelisted, it is plausibly official, and no remote code execution or obfuscation is present.

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 llm_review

An AI model (qwen/qwen3-235b-a22b-2507) reviewed this and agrees it is LOW (confidence 95%): The package installs a prebuilt .deb from the project's GitHub releases and uses system Electron; while the host is not whitelisted, it is plausibly official, and no remote code execution or obfuscation is present.

PKGBUILD

1# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
2pkgname=kunyin-desktop-bin
3_pkgname="坤音"
4pkgver=1.0.5
5_electronversion=39
6pkgrel=1
7pkgdesc="A desktop music player that aggregates multi-platform audio sources.(Prebuilt version.Use system-wide electron)聚合多平台音源的桌面音乐播放器"
8arch=('x86_64')
9url="https://github.com/ikunshare/kunyin-desktop"
10license=('MIT')
11provides=("${pkgname%-bin}=${pkgver}")
12conflicts=("${pkgname%-bin}")
13depends=(
14 "electron${_electronversion}"
15)
16makedepends=(
17 'asar'
18)
19source=(
20 "${pkgname%-bin}-${pkgver}.deb::${url}/releases/download/v${pkgver}/${pkgname%-bin}_${pkgver}_amd64.deb"
21 "LICENSE-${pkgver}::https://raw.githubusercontent.com/ikunshare/kunyin-desktop/v${pkgver}/LICENSE"
22 "${pkgname%-bin}.sh"
23)
24sha256sums=('d1b2421527109fbdb69d122ba6833c810b0e2267430518a0e6e045fdc410e602'
25 '1b19fe707eab955d1070c99dfed63f5984b1deee79b57c161979eefcf0b61763'
26 'a774c2f54fbbeeaac3cefc0f7250796d30c86d27f0fd40b7eaf9c0fdb021623d')
27_get_app_dir() {
28 find "${srcdir}" -type f -name "resources.pak" -exec dirname {} + | head -n 1
29}
30_check_electron_version() {
31 echo "Verifying Electron version..."
32 local _main_exe=$(find "$(_get_app_dir)" -maxdepth 1 -type f -executable -printf '%s %p\n' | sort -nr | head -1 | cut -d' ' -f2-)
33 [[ -z "${_main_exe}" ]] && echo -e "\033[1;33mNote: Could not find Electron binary.\033[0m" && return
34 local _elec_ver=$(strings "${_main_exe}" | grep -oP 'Electron/\K[0-9]+' | head -1)
35 [[ -z "${_elec_ver}" ]] && echo -e "\033[1;33mNote: Could not determine Electron version.\033[0m" && return
36 [[ "${_elec_ver}" != "${_electronversion}" ]] &&
37 echo -e "\033[1;31mWarning: Electron version mismatch! Detected: ${_elec_ver}, Expected: ${_electronversion}\033[0m" ||
38 echo -e "Electron version verified: \033[1;31m${_elec_ver}\033[0m"
39}
40prepare() {
41 sed -i -e "
42 s/@electronversion@/${_electronversion}/g
43 s/@appname@/${pkgname%-bin}/g
44 s/@runname@/app.asar/g
45 s/@cfgdirname@/${_pkgname}/g
46 " "${srcdir}/${pkgname%-bin}.sh"
47 bsdtar -xf "${srcdir}/data."*
48 _check_electron_version
49 local _app_dir=$(_get_app_dir)
50 sed -i "s/\/opt\/${_pkgname}\///g" "${srcdir}/usr/share/applications/${pkgname%-bin}.desktop"
51 rm -rf "${_app_dir}/resources/app.asar.unpacked/node_modules/better-sqlite3/prebuilds/linux-arm64.node"
52}
53package() {
54 install -Dm755 "${srcdir}/${pkgname%-bin}.sh" "${pkgdir}/usr/bin/${pkgname%-bin}"
55 install -Dm755 -d "${pkgdir}/usr/lib/${pkgname%-bin}"
56 local _app_dir=$(_get_app_dir)
57 cp -a "${_app_dir}/resources/"* "${pkgdir}/usr/lib/${pkgname%-bin}/"
58 install -Dm644 "${srcdir}/usr/share/applications/${pkgname%-bin}.desktop" -t "${pkgdir}/usr/share/applications"
59 find "${srcdir}" -type f \( -name "*.png" -o -name "*.svg" \) -path "*share/icons/*" | while read -r _i; do
60 _extension="${_i##*.}"
61 _icon_path="${_i#*share/icons/}"
62 _target_dir="/usr/share/icons/$(dirname "${_icon_path}")"
63 install -Dm644 "${_i}" "${pkgdir}${_target_dir}/${pkgname%-bin}.${_extension}"
64 done
65 install -Dm644 "${srcdir}/LICENSE-${pkgver}" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
66}

Scan history

Scanned at (UTC)SeverityRules
2026-08-24 15:23:42 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