增加对 1GB Huge Pages 的支持,添加相关服务和配置,优化安装脚本
This commit is contained in:
Vendored
+5
@@ -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..."
|
||||
|
||||
Reference in New Issue
Block a user