siyuan-unlock

MEDIUM
maintainer moyigeek 0 votes scanned 2026-08-21 09:14:41.547952
View on AUR
Why flagged

The package installs a prebuilt binary from a GitHub-like release hosted under a personal account (appdev), which is not the official project's repository, creating a supply-chain risk if the source were swapped.

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.

Medium AI review of an ambiguous pattern llm_review

The static rules found a suspicious pattern they could not resolve, so an AI model (qwen/qwen3-235b-a22b-2507) reviewed it and judged it MEDIUM (confidence 85%): The package installs a prebuilt binary from a GitHub-like release hosted under a personal account (appdev), which is not the official project's repository, creating a supply-chain risk if the source were swapped.

PKGBUILD

1# Maintainer: moyigeek <moyi@openatom.club>
2
3pkgname=siyuan-unlock
4pkgver=3.7.3
5pkgrel=1
6pkgdesc='Privacy-first personal knowledge management software (prebuilt binary)'
7arch=('x86_64')
8url='https://b3log.org/siyuan/en/'
9license=('AGPL-3.0-only')
10depends=('alsa-lib' 'gtk3' 'libxss' 'musl' 'nss' 'libxtst' 'xdg-utils')
11provides=('siyuan')
12conflicts=('siyuan')
13options=('!strip')
14source=("https://github.com/appdev/siyuan-unlock/releases/download/v${pkgver}/siyuan-${pkgver}-linux.tar.gz")
15sha256sums=('5d3f08d93631085cccc0c8fe89016f66b6e451606cc0da78ed42554b1242dcb7')
16sha512sums=('8b7aa6261c0943064412ddb11248cbc53e1798c2176ddd4a649f17a4e002d65ec47e0f73b31517cb4701402c0ecf535066f3c72058de5107bb9d7df9f073dd86')
17
18package() {
19 local appdir="${pkgdir}/opt/siyuan"
20
21 install -d "${appdir}"
22 cp -r "siyuan-${pkgver}-linux/." "${appdir}/"
23
24 # Electron requires the sandbox helper to be owned by root and setuid.
25 chmod 4755 "${appdir}/chrome-sandbox"
26
27 install -Dm755 /dev/stdin "${pkgdir}/usr/bin/siyuan" <<'EOF'
28#!/bin/bash
29
30if [[ -n ${WAYLAND_DISPLAY:-} || ${XDG_SESSION_TYPE:-} == wayland ]]; then
31 exec /opt/siyuan/siyuan --ozone-platform=x11 "$@"
32fi
33
34exec /opt/siyuan/siyuan "$@"
35EOF
36
37 install -Dm644 "${appdir}/resources/stage/icon.png" \
38 "${pkgdir}/usr/share/icons/hicolor/128x128/apps/org.b3log.siyuan.png"
39
40 install -Dm644 /dev/stdin \
41 "${pkgdir}/usr/share/applications/org.b3log.siyuan.desktop" <<'EOF'
42[Desktop Entry]
43Name=SiYuan
44Comment=Refactor your thinking
45Exec=siyuan %U
46Icon=org.b3log.siyuan
47Terminal=false
48Type=Application
49Categories=Office;Utility;
50MimeType=x-scheme-handler/siyuan;
51StartupWMClass=SiYuan
52EOF
53
54 install -Dm644 "${appdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
55 install -Dm644 "${appdir}/LICENSE.electron.txt" \
56 "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.electron.txt"
57 install -Dm644 "${appdir}/LICENSES.chromium.html" \
58 "${pkgdir}/usr/share/licenses/${pkgname}/LICENSES.chromium.html"
59}
60

Scan history

Scanned at (UTC)SeverityRules
2026-08-21 09:14:41 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