cocos-creator-headless-install-scene-patch
Use when installing Cocos Creator 3.x and setting up a headless test bootstrap.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when installing Cocos Creator 3.x and setting up a headless test bootstrap.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when setting up a GUI-free CLI build pipeline for Cocos Creator 3.x.
Use when building code-driven scrollable UI panels in Cocos Creator 3.x.
Use when code-driven UI nodes in Cocos Creator 3.x fail to render text or colors.
Use when Cocos Creator 3.x CLI build fails with scene or library errors.
Use when installing Cocos Creator 3.x and debugging scene import errors.
Use when creating a runtime test without a .scene file in Cocos Creator 3.x.
| name | cocos-creator-headless-install-scene-patch |
| description | Use when installing Cocos Creator 3.x and setting up a headless test bootstrap. |
Install Cocos Creator 3.x without GUI, then set up a runtime test bootstrap scene.
# Download latest Cocos Creator from official site:
# https://www.cocos.com/en/creator-download
# (Download link changes with each version, use the official page)
curl -L "$(curl -s https://www.cocos.com/creator-download 2>/dev/null | grep -oP 'https://download\.cocos\.com/CocosCreator/v[0-9.]+\.[0-9]+/CocosCreator-v[0-9.]+\.dmg' | head -1 || echo 'https://www.cocos.com/en/creator-download')" -o /tmp/Cocos.dmg || echo "Please download manually from https://www.cocos.com/en/creator-download"
# Mount and copy
hdiutil attach /tmp/Cocos.dmg
cp -R "/Volumes/CocosCreator/CocosCreator.app" /Applications/
hdiutil detach /Volumes/CocosCreator
Create assets/scenes/BootScene.scene with minimum nodes:
See references/scene-template.md for the minimal BootScene JSON template.
/Applications/CocosCreator.app/Contents/MacOS/CocosCreator --project . --build "platform=web-mobile;debug=true"
The --headless flag may be needed for CI environments.