创建空插件目录抑制启动警告⚠️
diff --git a/PKGBUILD b/PKGBUILD
index a307392..7a62fec 100755
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname="liteloader-qqnt-bin"
_pkgname="LiteLoaderQQNT"
pkgver=1.2.3
-pkgrel=1
+pkgrel=2
pkgdesc="轻量, 简洁, 开源的 QQNT 插件加载器"
arch=('any')
url="https://github.com/LiteLoaderQQNT/LiteLoaderQQNT"
@@ -15,7 +15,8 @@ source=("LiteLoaderQQNT-${pkgver}.zip::${url}/releases/download/${pkgver}/${_pkg
"liteloader-qqnt-depatch.hook"
"liteloader-qqnt-patch.hook"
)
-
+# Explicitly specify that empty directories are allowed
+options=(emptydirs)
sha256sums=(
'c7223a709b9514c1dbfd11e891af7d1a2076e53f888d431490975f170f0f8819'
'71f645653e7ed404e70027bab159571636a2311b633246836028ddb9c730b530'
@@ -51,4 +52,6 @@ package() {
# Install pacman hooks
install -Dm644 "${srcdir}/liteloader-qqnt-patch.hook" "${pkgdir}/etc/pacman.d/hooks/liteloader-qqnt-patch.hook"
install -Dm644 "${srcdir}/liteloader-qqnt-depatch.hook" "${pkgdir}/etc/pacman.d/hooks/liteloader-qqnt-depatch.hook"
+ # Create an empty plugin directory to suppress startup warnings
+ install -dm755 "${pkgdir}/opt/LiteLoaderQQNT/plugins"
}
Pinned Comments
kobe-koto commented on 2024-09-21 10:01 (UTC) (edited on 2024-10-06 06:58 (UTC) by kobe-koto)
FAQs
从低于 v1.2.2 的版本更新
LiteLoaderQQNT 1.2.2 已经发布!
因为安装方式变更, 本次更新需手动介入. 请全新安装 liteloader-qqnt AUR 包(-git -bin), 另推荐重新安装相关 linuxqq (or linuxqq-nt-bwrap) 包以确保 preload*.js 未被修改.
数据目录
/opt/LiteLoader/
作为数据目录, 建议转向${XDG_CONFIG_HOME}/QQ/LiteLoaderQQNT/