live2d-kanban-desktop
maintainer zxp19821005
· 0 votes
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged
The non-standard host download is a minified JavaScript library (live2dcubismcore.min.js) from the official Live2D domain, used as a static dependency; it is not executed remotely and the package otherwise builds from the project's own GitHub source, posing minimal risk.
Triggered rules
LOW
AI review downgraded a static finding
llm_review
The static rules flagged this MEDIUM, but an AI model (qwen/qwen3-235b-a22b-07-25) reviewed the full PKGBUILD and judged it LOW (confidence 95%): The non-standard host download is a minified JavaScript library (live2dcubismcore.min.js) from the official Live2D domain, used as a static dependency; it is not executed remotely and the package otherwise builds from the project's own GitHub source, posing minimal risk.
1 higher static finding superseded - not the current verdict (shown for transparency)
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:26
"live2dcubismcore.min-${pkgver}.js::https://cubism.live2d.com/sdk-web/cubismcore/live2dcubismcore.min.js"
PKGBUILD
1 offending line(s) highlighted
1
# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
2
_pkgname=kanban-desktop
3
pkgname="live2d-${_pkgname}"
4
pkgver=2.9.0
5
_electronversion=22
6
_nodeversion=20
7
pkgrel=3
8
pkgdesc="An AI Based live2d Kanban for Desktop Users Using Electron.(Use system-wide electron)基于Electron制作的桌面看板娘,支持日程提醒、小窗模式、ChatGPT集成、网页搜索、本地moc模型加载与独立设置界面等"
9
arch=('any')
10
url="http://studio.zerolite.cn/post/338/waifuproject2-live2d-kanban-desktop/"
11
_ghurl="https://github.com/JimHans/live2d-kanban-desktop"
12
license=('GPL-3.0-only')
13
conflicts=("${pkgname}")
14
depends=(
15
"electron${_electronversion}"
16
)
17
makedepends=(
18
'gendesk'
19
'npm'
20
'nvm'
21
'pnpm'
22
'curl'
23
)
24
source=(
25
"${pkgname}-${pkgver}.tar.gz::${_ghurl}/archive/refs/tags/v${pkgver}.tar.gz"
26
"live2dcubismcore.min-${pkgver}.js::https://cubism.live2d.com/sdk-web/cubismcore/live2dcubismcore.min.js"
27
"${pkgname}.sh"
28
)
29
sha256sums=('aab5b41c1887f0de9673aea397b34c5794c2bb5d6b5b85bcb67837ac40bd82bc'
30
'SKIP'
31
'291f50480f5a61bc9c68db7d44cd0412071128706baa868a9cb854f8779a1980')
32
_ensure_local_nvm() {
33
local NVM_DIR="${srcdir}/.nvm"
34
source /usr/share/nvm/init-nvm.sh || [[ $? != 1 ]]
35
nvm install "${_nodeversion}"
36
nvm use "${_nodeversion}"
37
}
38
prepare() {
39
sed -i -e "
40
s/@electronversion@/${_electronversion}/g
41
s/@appname@/${pkgname}/g
42
s/@runname@/app.asar/g
43
s/@cfgdirname@/${_pkgname}/g
44
s/@options@/env ELECTRON_OZONE_PLATFORM_HINT=auto/g
45
" "${srcdir}/${pkgname}.sh"
46
_ensure_local_nvm
47
gendesk -q -f -n --pkgname="${pkgname}" --pkgdesc="${pkgdesc}" --categories="Utility" --name="${pkgname}" --exec="${pkgname} %U"
48
cd "${srcdir}/${pkgname}-${pkgver}"
49
export ELECTRON_SKIP_BINARY_DOWNLOAD=1
50
export SYSTEM_ELECTRON_VERSION="$(electron${_electronversion} -v | sed 's/v//g')"
51
HOME="${srcdir}/.electron-gyp"
52
{
53
echo -e '\n'
54
#echo 'build_from_source=true'
55
echo 'link-workspace-packages=true'
56
echo 'fetch-retry-maxtimeout=10000'
57
echo "cache-dir="${srcdir}"/.pnpm_cache"
58
echo "store-dir="${srcdir}"/.pnpm_store"
59
echo "shamefully-hoist=true"
60
echo "virtual-store-dir-max-length=80"
61
} >> .npmrc
62
if [[ "$(curl -s ipinfo.io/country)" == *"CN"* ]]; then
63
{
64
echo 'registry=https://registry.npmmirror.com'
65
echo 'electron_mirror=https://cdn.npmmirror.com/binaries/electron/'
66
echo 'electron_builder_binaries_mirror=https://npmmirror.com/mirrors/electron-builder-binaries/'
67
} >> .npmrc
68
fi
69
sed -i "s/\"electron\": \"[^\"]*\"/\"electron\": \"${SYSTEM_ELECTRON_VERSION}\"/g" package.json
70
NODE_ENV=development pnpm install
71
}
72
build() {
73
cd "${srcdir}/${pkgname}-${pkgver}"
74
local electronDist="/usr/lib/electron${_electronversion}"
75
NODE_ENV=production pnpm -c exec "electron-builder --linux dir -c.electronDist=${electronDist}"
76
}
77
package() {
78
install -Dm755 "${srcdir}/${pkgname}.sh" "${pkgdir}/usr/bin/${pkgname}"
79
install -Dm644 "${srcdir}/${pkgname}-${pkgver}/dist/linux-"*/resources/app.asar -t "${pkgdir}/usr/lib/${pkgname}"
80
cp -Pr --no-preserve=ownership "${srcdir}/${pkgname}-${pkgver}/dist/linux-"*/resources/app.asar.unpacked "${pkgdir}/usr/lib/${pkgname}"
81
install -Dm755 "${srcdir}/live2dcubismcore.min-${pkgver}.js" "${pkgdir}/usr/lib/${pkgname}/live2dcubismcore.min.js"
82
install -Dm644 "${srcdir}/${pkgname}.desktop" -t "${pkgdir}/usr/share/applications"
83
install -Dm644 "${srcdir}/${pkgname}-${pkgver}/assets/app.png" "${pkgdir}/usr/share/pixmaps/${pkgname}.png"
84
install -Dm644 "${srcdir}/${pkgname}-${pkgver}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}"
85
}
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-08-03 00:08:14 | LOW | 2 |
| 2026-08-02 00:16:08 | LOW | 2 |
| 2026-08-01 00:11:18 | LOW | 2 |
| 2026-07-31 00:14:10 | LOW | 2 |
| 2026-07-30 00:17:23 | LOW | 2 |
| 2026-07-29 00:25:53 | LOW | 2 |
| 2026-07-28 00:07:28 | LOW | 2 |
| 2026-07-27 00:24:32 | LOW | 2 |
| 2026-07-26 00:07:32 | LOW | 2 |
| 2026-07-25 00:13:44 | LOW | 2 |
| 2026-07-24 00:02:28 | LOW | 2 |
| 2026-07-23 00:14:47 | LOW | 2 |
| 2026-07-22 00:29:32 | LOW | 2 |
| 2026-07-21 00:24:15 | LOW | 2 |
| 2026-07-20 00:19:49 | LOW | 2 |
| 2026-07-19 00:17:08 | LOW | 2 |
| 2026-07-18 00:14:48 | LOW | 2 |
| 2026-07-17 00:06:16 | LOW | 2 |
| 2026-07-16 00:05:41 | LOW | 2 |
| 2026-07-15 00:09:25 | LOW | 2 |