同步主站 Cocos 当前工程:关卡资源、运行脚本与打包工具。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-12 14:40:34 +08:00
parent ae75fce80b
commit fac515a669
5609 changed files with 27744634 additions and 5653 deletions

View File

@@ -198,7 +198,7 @@ echo ">>> [3/3] 生成 CDN 上传清单: $MANIFEST"
echo "cdn: $CDN_BASE/StreamingAssets/$rel"
echo ""
done < <(find "$PACK_DIR/StreamingAssets" -type f ! -name '.DS_Store' -print0 | sort -z)
for db in levels-database.json levels-database.json.br; do
for db in levels-db-index.json levels-db-index.json.br levels-database.json levels-database.json.br; do
if [[ -f "$PACK_DIR/$db" ]]; then
echo "local: $db"
echo "cdn: $CDN_BASE/$db"
@@ -220,7 +220,7 @@ catalog_path, cdn = sys.argv[1], sys.argv[2].rstrip('/')
d = json.load(open(catalog_path))
names = sorted({x.split('/')[-1] for x in d.get('m_InternalIds', []) if '.bundle' in x})
for n in names:
print(f'curl -I "{cdn}/StreamingAssets/aa/WebGL/{n}"')
print(f'curl -I "{cdn}/StreamingAssets/aa/WebGL/{n}.br"')
PY
} > "$MANIFEST"