增加对 1GB Huge Pages 的支持,添加相关服务和配置,优化安装脚本
Build and Release / build-and-test (amd64) (push) Successful in 1m40s
Build and Release / build-and-test (arm64) (push) Successful in 1m40s
Build and Release / release (push) Failing after 4s

This commit is contained in:
2026-08-05 12:50:18 +08:00
parent 99a17f1852
commit b04d41d783
7 changed files with 49 additions and 75 deletions
+5
View File
@@ -46,6 +46,7 @@ PKG_DIR="${BUILD_DIR}/${PKG_NAME}_${DEB_VERSION}_${DEB_ARCH}"
mkdir -p "${PKG_DIR}/DEBIAN"
mkdir -p "${PKG_DIR}/opt/xxxig"
mkdir -p "${PKG_DIR}/lib/systemd/system"
mkdir -p "${PKG_DIR}/usr/libexec"
# 解压二进制文件
echo "📂 Extracting binaries..."
@@ -70,6 +71,8 @@ chmod 755 "${PKG_DIR}/DEBIAN/postrm"
echo "🔧 Installing systemd services..."
cp debian/xxxig-server.service "${PKG_DIR}/lib/systemd/system/"
cp debian/xxxig-daemon.service "${PKG_DIR}/lib/systemd/system/"
cp debian/xxxig-hugepages.service "${PKG_DIR}/lib/systemd/system/"
cp debian/xxxig-enable-1gb-pages "${PKG_DIR}/usr/libexec/"
# 设置权限
chmod 755 "${PKG_DIR}/opt/xxxig/xxxigServer"
@@ -80,6 +83,8 @@ chmod 644 "${PKG_DIR}/opt/xxxig/config_cc.json"
chmod 644 "${PKG_DIR}/opt/xxxig/index.html"
chmod 644 "${PKG_DIR}/lib/systemd/system/xxxig-server.service"
chmod 644 "${PKG_DIR}/lib/systemd/system/xxxig-daemon.service"
chmod 644 "${PKG_DIR}/lib/systemd/system/xxxig-hugepages.service"
chmod 755 "${PKG_DIR}/usr/libexec/xxxig-enable-1gb-pages"
# 构建 deb 包
echo "🔨 Building package..."