参考code增加一个custom flags,如何提交?
Subject: [PATCH] add bootstrap for custom flags
---
PKGBUILD | 16 +++++++++++++++-
1 file changed, 15 insertions(+), 1 deletion(-)
diff --git a/PKGBUILD b/PKGBUILD
index bd1a8a6..565514b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -31,7 +31,21 @@ package(){
# Modify files
cd "${pkgdir}"
- ln -s bytedance-feishu-${_pkgtyp} usr/bin/feishu
+ cat << EOF > usr/bin/feishu
+#!/bin/bash
+
+XDG_CONFIG_HOME=\${XDG_CONFIG_HOME:-~/.config}
+
+# Allow users to override command-line options
+if [[ -f \$XDG_CONFIG_HOME/feishu-flags.conf ]]; then
+ FEISHU_USER_FLAGS="\$(grep -v '^#' \$XDG_CONFIG_HOME/feishu-flags.conf)"
+fi
+
+# Launch
+exec /usr/bin/bytedance-feishu-${_pkgtyp} \$FEISHU_USER_FLAGS "\$@"
+EOF
+
+ chmod +x usr/bin/feishu
sed -i "s/bytedance-feishu-${_pkgtyp}/feishu/g" "${pkgdir}/usr/share/applications/bytedance-feishu.desktop"
sed -i 's/StartupNotify=true/StartupNotify=true\nStartupWMClass=feishu/g' "${pkgdir}/usr/share/applications/bytedance-feishu.desktop"
--
2.49.0
Pinned Comments
xuanwo commented on 2024-06-30 08:26 (UTC)
Hi, although some feishu developers monitor this package, please note that AUR is not the official channel for reporting issues unrelated to the package.
For non-package related issues, contact the Feishu team directly. We cannot and will not address any non-package issues.