shuli-bin

maintainer zxp19821005 · 0 votes · scanned 2026-08-03 00:08:14.047287
MEDIUM
View on AUR ↗
Why flagged The package downloads prebuilt RPM binaries from a non-standard host (file.slinote.com), which is not a widely recognized or whitelisted domain, posing a supply-chain risk if the host is compromised or controlled by an unauthorized party.

Triggered rules

MEDIUM source=() URL on a non-standard host source_untrusted_domain

One or more source=() URLs point to a host outside the trusted allowlist (github.com, gitlab.com, codeberg.org, pypi.org, …).

  • PKGBUILD:24 source_aarch64=("${pkgname%-bin}-${pkgver}-aarch64.rpm::https://file.slinote.com/installer/linux-arm/${pkgname%-bin}-${pkgver}.aarch64.rpm")
MEDIUM AI review llm_review

An AI model (qwen/qwen3-235b-a22b-07-25) reviewed this and agrees it is MEDIUM (confidence 90%): The package downloads prebuilt RPM binaries from a non-standard host (file.slinote.com), which is not a widely recognized or whitelisted domain, posing a supply-chain risk if the host is compromised or controlled by an unauthorized party.

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
2pkgname=shuli-bin
3_zhsname='书立'
4pkgver=0.10.7
5_electronversion=41
6pkgrel=1
7pkgdesc="Personal Knowledge Management Assistant.Double-chain, table, rich text, high performance, local first.书立,个体知识管理助手,双链、表格、富文本、高性能、本地优先"
8arch=(
9 'aarch64'
10 'x86_64'
11)
12url="https://slinote.com/home"
13_ghurl="https://github.com/codeartel/slinote-community"
14license=('LicenseRef-custom')
15conflicts=("${pkgname%-bin}")
16provides=("${pkgname%-bin}=${pkgver}")
17depends=(
18 "electron${_electronversion}"
19)
20options=(
21 '!emptydirs'
22)
23source=("${pkgname%-bin}.sh")
24source_aarch64=("${pkgname%-bin}-${pkgver}-aarch64.rpm::https://file.slinote.com/installer/linux-arm/${pkgname%-bin}-${pkgver}.aarch64.rpm")
25source_x86_64=("${pkgname%-bin}-${pkgver}-x86_64.rpm::https://file.slinote.com/installer/linux/${pkgname%-bin}-${pkgver}.x86_64.rpm")
26sha256sums=('a774c2f54fbbeeaac3cefc0f7250796d30c86d27f0fd40b7eaf9c0fdb021623d')
27sha256sums_aarch64=('f5f17f2091a4c10812f3268cc577df688bbf76debd2f037bb25068fae2309fea')
28sha256sums_x86_64=('c31b73b0a61503f62070e7deac85e1862f9669dd5984d8059440078e1febd6d8')
29_get_app_dir() {
30 find "${srcdir}" -type f -name "resources.pak" -exec dirname {} + | head -n 1
31}
32_check_electron_version() {
33 echo "Verifying Electron version..."
34 local _app_dir=$(_get_app_dir)
35 local _main_exe=""
36 if [[ -n "${_app_dir}" ]]; then
37 _main_exe=$(find "${_app_dir}" -maxdepth 1 -type f -executable -printf '%s %p\n' | sort -nr | head -n 1 | cut -d' ' -f2-)
38 fi
39 if [[ -n "${_main_exe}" ]]; then
40 local _elec_ver=$(strings "${_main_exe}" | grep '^Chrome/[0-9.]* Electron/[0-9]' | cut -d'/' -f3 | cut -d'.' -f1 | head -n 1)
41 if [[ -n "${_elec_ver}" ]]; then
42 if [[ "${_elec_ver}" != "${_electronversion}" ]]; then
43 echo -e "\033[1;31mWarning: Electron version mismatch! Detected: ${_elec_ver}, Expected: ${_electronversion}\033[0m"
44 else
45 echo -e "Electron version verified: \033[1;31m${_elec_ver}\033[0m"
46 fi
47 fi
48 else
49 echo -e "\033[1;33mNote: Could not find Electron binary for version verification.\033[0m"
50 fi
51}
52prepare() {
53 sed -e "
54 s/@electronversion@/${_electronversion}/g
55 s/@appname@/${pkgname%-bin}/g
56 s/@runname@/app.asar/g
57 s/@cfgdirname@/${pkgname%-bin}/g
58 " -i "${srcdir}/${pkgname%-bin}.sh"
59 _check_electron_version
60 sed -i "s/\"\/opt\/${_zhsname}\/${pkgname%-bin}\"/${pkgname%-bin}/g" "${srcdir}/usr/share/applications/${pkgname%-bin}.desktop"
61}
62package() {
63 install -Dm755 "${srcdir}/${pkgname%-bin}.sh" "${pkgdir}/usr/bin/${pkgname%-bin}"
64 install -Dm755 -d "${pkgdir}/usr/lib/${pkgname%-bin}"
65 local _app_dir=$(_get_app_dir)
66 cp -a "${_app_dir}/resources/". "${pkgdir}/usr/lib/${pkgname%-bin}/"
67 find "${srcdir}" -type f \( -name "*.png" -o -name "*.svg" \) -path "*share/icons/*" | while read -r _i; do
68 _extension="${_i##*.}"
69 _icon_path="${_i#*share/icons/}"
70 _target_dir="/usr/share/icons/$(dirname "${_icon_path}")"
71 install -Dm644 "${_i}" "${pkgdir}${_target_dir}/${pkgname%-bin}.${_extension}"
72 done
73 install -Dm644 "${srcdir}/usr/share/applications/${pkgname%-bin}.desktop" -t "${pkgdir}/usr/share/applications"
74 install -Dm644 "${srcdir}/opt/${_zhsname}/LICENSE"* -t "${pkgdir}/usr/share/licenses/${pkgname}"
75}
76

Scan history

Scanned at (UTC)SeverityRules
2026-08-03 00:08:14 MEDIUM 2
2026-08-02 00:16:08 MEDIUM 2
2026-08-01 00:11:18 MEDIUM 2
2026-07-31 00:14:10 MEDIUM 2
2026-07-30 00:17:23 MEDIUM 2
2026-07-29 00:25:53 MEDIUM 2
2026-07-28 00:07:28 MEDIUM 2
2026-07-27 00:24:32 MEDIUM 2
2026-07-26 00:07:32 MEDIUM 2
2026-07-25 00:13:44 MEDIUM 2
2026-07-24 00:02:28 MEDIUM 2
2026-07-23 00:14:47 MEDIUM 2
2026-07-22 00:29:32 MEDIUM 2
2026-07-21 00:24:15 MEDIUM 2
2026-07-20 00:19:49 MEDIUM 2
2026-07-19 00:17:08 MEDIUM 2
2026-07-18 00:14:48 MEDIUM 2
2026-07-17 00:06:16 MEDIUM 2
2026-07-16 00:05:41 MEDIUM 2
2026-07-15 00:09:25 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