dsh-first-paint

首帧启动页:把品牌启动页作为 index 注入行写进 DSH 的首帧 HTML,桌面端窗口出现时直接是启动页,而不是白屏或加载态。检测到启动动画插件开始(`window.__DSH_STARTUP_RUNNING__`)后自动淡出让位;默认 6 秒兜底(可用 maxMs 调整),不会把应用卡在启动页里。普通 dsh.bundle 插件,不改宿主、不碰 app.asar。

插件介绍

首帧启动页:把品牌启动页作为 index 注入行写进 DSH 的首帧 HTML,桌面端窗口出现时直接是启动页,而不是白屏或加载态。检测到启动动画插件开始(`window.__DSH_STARTUP_RUNNING__`)后自动淡出让位;默认 6 秒兜底(可用 maxMs 调整),不会把应用卡在启动页里。普通 dsh.bundle 插件,不改宿主、不碰 app.asar。

安装方式

从 GitHub 安装

dsh plugin --profile web add github:1jincheng/dsh-first-paint

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

版本兼容情况

兼容性待确认。可前往项目文档查看支持版本。