feat: bundle multi-arch nginx for native fnOS stage 2

This commit is contained in:
2026-10-02 15:32:37 +08:00
parent 6725fc131d
commit b05098926c
6 changed files with 108 additions and 7 deletions
+13 -1
View File
@@ -17,6 +17,18 @@ if [ ! -f "$BIN" ]; then
exit 1
fi
chmod +x "$BIN"
NGINX_BIN="$TRIM_APPDEST/server/$ARCH_DIR/nginx"
if [ ! -f "$NGINX_BIN" ]; then
echo "找不到 Nginx 二进制:$NGINX_BIN" > "$TRIM_TEMP_LOGFILE"
exit 1
fi
MIME_TYPES="$TRIM_APPDEST/server/mime.types"
if [ ! -f "$MIME_TYPES" ]; then
echo "找不到 Nginx mime.types:$MIME_TYPES" > "$TRIM_TEMP_LOGFILE"
exit 1
fi
chmod +x "$BIN" "$NGINX_BIN"
echo "Havline 数据目录已准备:$TRIM_PKGVAR"
exit 0
+4
View File
@@ -58,8 +58,12 @@ start_app() {
export HAVLINE_GATEWAY_SOCKET="$SOCKET_PATH"
export HAVLINE_GATEWAY_PREFIX="/app/havline"
export HAVLINE_UPDATER_SOCKET=""
export HAVLINE_NGINX_BIN="$TRIM_APPDEST/server/$arch/nginx"
export HAVLINE_NGINX_MIME_TYPES="$TRIM_APPDEST/server/mime.types"
export HAVLINE_NGINX_PID="$TRIM_PKGVAR/nginx/nginx.pid"
export HAVLINE_NGINX_HTTP_PORT="${wizard_nginx_http_port:-18080}"
export HAVLINE_NGINX_HTTPS_PORT="${wizard_nginx_https_port:-9443}"
export LD_LIBRARY_PATH="$TRIM_APPDEST/server/$arch/lib:${LD_LIBRARY_PATH:-}"
export TZ="${wizard_timezone:-Asia/Shanghai}"
if [ -n "${wizard_initial_admin_password:-}" ]; then
+2 -2
View File
@@ -1,7 +1,7 @@
appname = havline
version = 1.9.0
display_name = Havline
desc = NAS 公网访问管理:原生应用阶段一
desc = NAS 公网访问管理:原生应用阶段二
platform = all
source = thirdparty
maintainer = Havline
@@ -11,4 +11,4 @@ desktop_uidir = ui
desktop_applaunchname = havline.main
ctl_stop = true
os_min_version = 1.1.3100
changelog = 原生应用阶段一:Go 主程序、统一网关和启停脚本
changelog = 原生应用阶段二:Nginx amd64/arm64 双架构打包