统一 musl 全静态构建,规范 Dockerfile 与产物命名
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
+1
-1
@@ -235,7 +235,7 @@ xxxigDaemon -c /etc/xxxig/config.json
|
||||
curl -I https://gitea.bcde.io
|
||||
|
||||
# 手动下载测试
|
||||
curl -O https://gitea.bcde.io/api/packages/wangdefa/generic/xxxig/6.26.0/xxxig-amd64-ubuntu-6.26.0.tar.gz
|
||||
curl -O https://gitea.bcde.io/api/packages/wangdefa/generic/xxxig/6.26.0/xxxig-amd64-linux-static-6.26.0.tar.gz
|
||||
```
|
||||
|
||||
**问题: 服务无法启动**
|
||||
|
||||
+2
-1
@@ -323,7 +323,8 @@ main() {
|
||||
[[ "$version" == "latest" ]] && version=$(get_gitea_latest_version)
|
||||
|
||||
local pkg_version="${version#v}" # registry 包版本为数字,去掉可能的 v 前缀
|
||||
download_url="https://${GITEA_SERVER}/api/packages/${GITEA_OWNER}/generic/${PACKAGE_NAME}/${pkg_version}/${PACKAGE_NAME}-$(get_arch)-$os_type-${pkg_version}.tar.gz"
|
||||
# 产物统一为 musl 全静态(linux-static),不再区分 distro;os_type 仅用于下方服务管理(OpenRC/systemd)
|
||||
download_url="https://${GITEA_SERVER}/api/packages/${GITEA_OWNER}/generic/${PACKAGE_NAME}/${pkg_version}/${PACKAGE_NAME}-$(get_arch)-linux-static-${pkg_version}.tar.gz"
|
||||
|
||||
log "$BLUE" "配置信息:"
|
||||
echo " 版本: $version"
|
||||
|
||||
Reference in New Issue
Block a user