dsh-pixelbar 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +16 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -37,6 +37,22 @@
37
37
 
38
38
  ## 安装(DSH 插件)
39
39
 
40
+ 任选一种。
41
+
42
+ ### 方式一:npm / 插件市场
43
+
44
+ 包已发布:[`dsh-pixelbar`](https://www.npmjs.com/package/dsh-pixelbar)
45
+
46
+ ```powershell
47
+ npm install dsh-pixelbar
48
+ ```
49
+
50
+ 装进 DSH profile 目录(`%USERPROFILE%\.dsh\profiles\desktop`),再把 `dsh-pixelbar` 加进该目录 `package.json` 的 `dsh.profile.bundles` 数组,重启 DSH 即可。包里的 `package.json` 声明了 `dsh.bundle: { patch: "./cordis.patch.yml" }`,DSH 会据此加载插件。
51
+
52
+ > 也可以直接在 DSH 的插件市场 / 插件管理里安装 `dsh-pixelbar`,效果相同。
53
+
54
+ ### 方式二:脚本(离线、免 npm)
55
+
40
56
  1. 双击 `apply.bat`(或 `pwsh -File apply.ps1`)
41
57
 
42
58
  脚本会:探测 `%USERPROFILE%\.dsh\profiles\desktop`(找不到就取唯一候选,或用 `DSH_PROFILE_DIR` 指定)→ 复制 `index.js / package.json / cordis.patch.yml / scripts/` 到 profile 的 `node_modules\dsh-pixelbar` → 把 `dsh-pixelbar` 登记进 `dsh.profile.bundles`。原 `package.json` 会备份成 `package.json.pixelbar.bak`。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-pixelbar",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "DSH 插件:把花再 Halo PixelBar 桌面像素屏变成常驻工具(推文字 / 切场景 / 屏色 / 氛围灯 / 音量)",
5
5
  "type": "module",
6
6
  "main": "index.js",