Repository navigation
feat(ui-plugins): add App Installer Builder (app-installer-builder) - #243
Open
ppppp2005-p wants to merge 10 commits into
Open
ppppp2005-p wants to merge 10 commits into
ppppp2005-p wants to merge 10 commits into
Conversation
Collaborator
|
✅ Internal validation passed. A ZCode maintainer will review the change next; after acceptance, release checks run separately and this PR is closed automatically. |
Author
|
ZCode desktop demo (ZCode 4.0.0, macOS arm64) app-installer-builder-demo.mp4Flow shown:
演示流程:本地 marketplace 安装 → npm run build → |
Collaborator
|
✅ Internal validation passed. A ZCode maintainer will review the change next; after acceptance, release checks run separately and this PR is closed automatically. |
Collaborator
|
✅ Internal validation passed. A ZCode maintainer will review the change next; after acceptance, release checks run separately and this PR is closed automatically. |
This branch has not been deployed
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.
Plugin type (required) / 插件类型(必填)
Affected plugin name(s) / 涉及的插件名称:
app-installer-builder(UI Plugin, new)What / 改动内容
New community UI plugin App Installer Builder / 应用安装包制作: wraps an existing website or Node project as a desktop app with electron-builder, generates the config, and builds the installers this computer can build.
Defaults (stated in the READMEs):
dirare optional).WIN_CSC_KEY_PASSWORDenv var and never stored. Without a certificate the build is unsigned, and the generated README says so. No notarization.Tools:
app_scan: static site (index.html in dist/build/out/public…) or Node server (start script / entry withlisten(), reads PORT?), package.json metadata, and square PNG icons.app_setup: generates<project>/desktop/:main.cjs: static sites served viaapp://local/with SPA fallback; Node servers spawned with Electron's Node (ELECTRON_RUN_AS_NODE) on a free port, withAPP_DATA_DIRand a server.log; single instance; external links open in the browser; sandboxed renderer.package.jsonwith pinned electron 45.5.0 and electron-builder 26.18.0.electron-builder.yml: dmg, nsis (assisted installer, shortcuts), AppImage, extraResources and signing fields.build/icon.png(user PNG ≥512, or a generated 1024 icon) andREADME.md.app_check: validation plus a per-target matrix of what this OS can build.app_build/app_status: npm install on first use, thenelectron-builder --publish never, run as a background job with a log; outputs are listed. Targets this OS can't build are refused with the command to run elsewhere.CSC_IDENTITY_AUTO_DISCOVERY=falseis set when unsigned.app_state,app_projects,app_file,app_icon.Panel:
Network / API / side effects: no API keys and no accounts.
app_buildrunsnpm installindesktop/, which downloads electron and electron-builder from npm/GitHub. Writes<project>/desktop/and.app-installer/state.json. No hooks.Third-party: generated projects depend on electron (MIT) and electron-builder (MIT); these are not bundled in the plugin. MCP SDK / ext-apps (MIT), zod (MIT).
Tests: samples are fictional. Focus Timer is a static SPA with absolute /assets paths, a /stats client route and a 1024 icon. Team Notes is a dependency-free Node server reading PORT and APP_DATA_DIR.
main.cjspassnode --check.dirfrom the panel, and the log streams.app://local/statswith the SPA route working.dirandAppImagebuilds of both samples, and the electron-builder schema validation of the full config (mac/dmg/win/nsis sections).npx electron-builder --mac dmg/--win nsisindesktop/.validate.py,build_dist.py,git diff --checkandtscpass.A ZCode Desktop demo recording is attached in the comments. / ZCode 桌面版演示录屏见评论。
Self-check / 自查清单
external_plugins/<name>/categoryis set (productivity)version0.1.0 in bothplugin.jsonandmarketplace.jsonREADME.md(EN) andREADME_CN.md(中文) both provided and equivalentdescription_i18nhas bothenandzh-CNpython3 scripts/validate.pyandpython3 scripts/build_dist.pypass locally