完善 deb 打包健壮性,补充 README 与 .gitignore
Build and Release / build-and-test (arm64, ubuntu) (push) Successful in 24s
Build and Release / build-and-test (amd64, alpine) (push) Successful in 13s
Build and Release / build-and-test (arm64, alpine) (push) Successful in 6s
Build and Release / build-and-test (amd64, ubuntu) (push) Successful in 0s
Build and Release / release (push) Successful in 28s
Build and Release / build-and-test (arm64, ubuntu) (push) Successful in 24s
Build and Release / build-and-test (amd64, alpine) (push) Successful in 13s
Build and Release / build-and-test (arm64, alpine) (push) Successful in 6s
Build and Release / build-and-test (amd64, ubuntu) (push) Successful in 0s
Build and Release / release (push) Successful in 28s
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Vendored
+2
@@ -14,6 +14,8 @@ TARGZ_FILE=$3
|
||||
PKG_NAME="xxxig"
|
||||
DEB_VERSION="${VERSION#v}" # Debian 版本号必须以数字开头,去掉可能的 v 前缀
|
||||
|
||||
[ -f "$TARGZ_FILE" ] || { echo "❌ 找不到产物包: $TARGZ_FILE"; exit 1; }
|
||||
|
||||
# 转换架构名称(Docker 使用的架构名到 Debian 架构名)
|
||||
case "$ARCH" in
|
||||
amd64)
|
||||
|
||||
Vendored
+1
-1
@@ -3,7 +3,7 @@ Version: {{VERSION}}
|
||||
Section: net
|
||||
Priority: optional
|
||||
Architecture: {{ARCH}}
|
||||
Depends: libc6, libuv1, libssl3 | libssl1.1, libhwloc15 | libhwloc5
|
||||
Depends: libc6 (>= 2.31)
|
||||
Maintainer: XXXig Team <noreply@example.com>
|
||||
Homepage: https://github.com/wangdefaa/xxxig
|
||||
Description: Cryptocurrency mining software suite
|
||||
|
||||
Vendored
+4
-2
@@ -33,9 +33,11 @@ if [ ! -f /etc/xxxig/config_cc.json ]; then
|
||||
chmod 640 /etc/xxxig/config_cc.json
|
||||
fi
|
||||
|
||||
# Set permissions
|
||||
# Set permissions:目录与二进制 755,配置/页面等数据文件 644
|
||||
chown -R root:root /opt/xxxig
|
||||
chmod -R 755 /opt/xxxig
|
||||
find /opt/xxxig -type d -exec chmod 755 {} +
|
||||
find /opt/xxxig -type f -exec chmod 644 {} +
|
||||
chmod 755 /opt/xxxig/xxxig /opt/xxxig/xxxigDaemon /opt/xxxig/xxxigServer
|
||||
|
||||
# Reload systemd
|
||||
if [ -d /run/systemd/system ]; then
|
||||
|
||||
Reference in New Issue
Block a user