@cjhd/cj-cocos-license
v1.2.2
Published
CJHD Cocos runtime license extension
Downloads
515
Readme
@cjhd/cj-cocos-license
CJHD Cocos runtime license extension and CLI installer.
Install the editor extension into a Cocos Creator project:
npx --registry=https://registry.npmjs.org @cjhd/cj-cocos-license@latest install-editor-extension --project .Import a license and unlock runtime packages:
node extensions/cj-cocos-license/dist/cli.js import-license --file D:/license/cj-runtime-license.json --project .
node extensions/cj-cocos-license/dist/cli.js install --project . --pkg-root extensions/pkg --forcePreview runtime is unlocked by the native Play pre-preview hook or by the explicit preview flow:
node extensions/cj-cocos-license/dist/cli.js preview --project . --pkg-root extensions/pkgClicking native browser Play renders the project preview-template/index.ejs, which calls the local CJHD preview bridge before Cocos preview scripts load. Closing a monitored preview restores editor-safe runtime stubs. The editor extension does not auto-unlock on load and does not re-unlock after preview close.
The license file is stored by default at:
.cjhd/cj-runtime-license.jsonRuntime packages stay under:
extensions/pkg/node_modules/@cjhdDo not install this package into extensions/pkg/node_modules/@cjhd/cj-cocos-license.
