# cchotfix **Repository Path**: caixuan/learn2d ## Basic Information - **Project Name**: cchotfix - **Description**: cocos creator 热更新 学习 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-06-07 - **Last Updated**: 2026-06-09 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # nginx-1.30.2.zip // window nginx 本地资源包 #conf/nginx.conf 改成下面这样 然后运行nginx.exe -->>网页检查 localhost:8081是否生效 events { worker_connections 1024; } http { include mime.types; default_type application/octet-stream; server { # 本地资源服务器端口 listen 8081; server_name localhost; # ====================== # 这里改成你的热更新根目录! # ====================== root D:/__GameRes; # 显示文件列表 autoindex on; charset utf-8; # ============ Cocos 必开的跨域 ============ add_header Access-Control-Allow-Origin *; add_header Access-Control-Allow-Methods 'GET, POST, OPTIONS'; add_header Access-Control-Allow-Headers 'Content-Type'; add_header Access-Control-Allow-Credentials true; # 大文件下载 sendfile on; keepalive_timeout 65; } } ###################################### # 安装python 3.x #tools\hot-update 先去cc构建bundle hot-update.config.json --->>热更资源配置 根据bundle 路径填写配置 python tools/hot-update/generate_manifest.py 运行热更脚本