feat(dev): support one-command Community Web and Desktop development - #2358
Open
AlcoholTobaccoCode wants to merge 6 commits into
Open
feat(dev): support one-command Community Web and Desktop development#2358AlcoholTobaccoCode wants to merge 6 commits into
AlcoholTobaccoCode wants to merge 6 commits into
Conversation
- 新增前后端与 JCEF Desktop 一键启动器,统一回环端口和进程清理 - 支持自动发现、校验和缓存 JBR 17 + JCEF,兼容 jenv 等 Java 管理器 - 让开发态 JCEF 从 localhost 加载 Umi renderer,并补齐 CORS、回归测试和多语言文档
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related issue
N/A - No approved Issue was provided.
Summary
Adds a one-command Community development workflow for Web and JCEF Desktop.
script/dev-community.shto start the frontend with either the backend or JCEF Desktop.127.0.0.1:8889and127.0.0.1:10825.dist/index.html.Affected surfaces
Verification
bash -n script/dev-community.sh script/dev-community.test.sh script/jbr-runtime-manifest.sh script/package/package-community-jcef.sh- passed.bash script/dev-community.test.sh- passed.yarn run test:community-dev-loopback- passed.yarn run lint- passed with zero warnings.yarn run test:sql-in-clipboard- passed.yarn run build:web:community --app_version=0.0.0- passed with Node 20.20.2.script/package/package-community-jcef.sh 0.0.0-local prepare- all 48 Maven modules built and jpackage input staging completed; tests were skipped by the packaging script.script/dev-community.sh web --dry-run- resolved the expected loopback frontend/backend commands.CHAT2DB_JBR_DOWNLOAD=never script/dev-community.sh desktop --dry-run- resolved the verified JBR cache and expected Desktop command.git diff --check- passed.Risk and compatibility
archives require HTTPS and a matching pinned SHA-512 checksum.
dist/index.html. Community development now intentionally rejects fallback ports and LAN-wide frontend binding. Node 18.17, 20, and 22 are supported; Node 24 is rejectedbecause the current Umi dependency chain is incompatible.
Reviewer map
script/dev-community.sh,RendererSourceResolver.java,RendererSource.java,force-community-loopback.cjs, andjbr-runtime-manifest.sh.packaged assets.
d8985754. Automatic JBR downloads can be disabled withCHAT2DB_JBR_DOWNLOAD=never, with an explicit compatibleJBR_HOMEsupplied instead.Contributor declaration
AI assistance: Substantial AI assistance was used for implementation, regression tests, documentation synchronization, and final review. The resulting behavior and diff were manually verified.