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