feat: 支持官方 CLI 一行安装(dsh plugin add dsh-better-sidebar)
- package.json 声明 dsh.bundle.patch(./cordis.patch.yml),随包发布挂载 patch;dsh plugin --profile <name> add dsh-better-sidebar@<v> 自动完成 安装 + 注册到 dsh.profile.bundles + 下次启动挂载(无需手写挂载行) - cordis.patch.yml:bundle 挂载层(insert better-sidebar) - scripts/install.sh:改走官方 CLI;预写 allowBuilds(node-pty/protobufjs) 规避 pnpm 11 strict-dep-builds 非零退出;幂等移除旧手动挂载行防双挂载 - README(EN):安装置顶官方 CLI 一行命令 v0.10.2
This commit is contained in:
1 parent
e515d74f77
commit
9fdb44d9f9
5 files changed
+160
-106
No files matched your search
@@ -0,0 +1,19 @@
|
||||
# dsh-better-sidebar bundle patch
|
||||
#
|
||||
# This file is the `dsh.bundle.patch` layer of the published npm package: when
|
||||
# the plugin is installed through the official CLI —
|
||||
#
|
||||
# dsh plugin --profile <name> add dsh-better-sidebar@<version>
|
||||
#
|
||||
# — the command reconciles `dsh.profile.bundles` against installed packages
|
||||
# and, seeing this declaration, appends `dsh-better-sidebar` to the bundle
|
||||
# stack. The profile boot then merges THIS patch (a single `insert` of the
|
||||
# plugin row) exactly like the manual cordis.patch.yml mount line used
|
||||
# before. No profile file edits needed — one command installs and mounts.
|
||||
#
|
||||
# If the profile still carries the old manual mount line in its own
|
||||
# cordis.patch.yml, remove it before switching to the bundle channel to
|
||||
# avoid double-mounting (two Node halves, two sidebars).
|
||||
- insert:
|
||||
- id: better-sidebar
|
||||
name: 'dsh-better-sidebar'
|
||||
Reference in new issue
Block a user