dsh-pet-live2d-desktop-darwin-arm64 3.1.0

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.
package/README.md ADDED
@@ -0,0 +1,52 @@
1
+ # 桌面端二进制的平台子包(macOS arm64)
2
+
3
+ 这个目录里装的是**随主包分发的那个二进制**,一份 `package.json` + 一个构建产物:
4
+
5
+ ```
6
+ npm/desktop-darwin-arm64/
7
+ package.json ← 进仓库(声明 os/cpu 的那份清单)
8
+ bin/dsh-pet-live2d-desktop ← 不进仓库(由 tools/npm-prepare-subpackage.mjs 铺)
9
+ ```
10
+
11
+ 和 Windows 那份(`npm/desktop-win32-x64/`)是同一个套路,只是三处不同:
12
+
13
+ | 项 | Windows | macOS arm64 |
14
+ |---|---|---|
15
+ | 产物 | `DSH桌宠.exe` | `dsh-pet-live2d-desktop`(Mach-O,无扩展名) |
16
+ | 构建机 | 本机 / `windows-latest` | **只能**在 macOS 上构建(`macos-14`) |
17
+ | 要不要签名 | SmartScreen 警告 | 未签名时 Gatekeeper 直接拦(见下) |
18
+
19
+ ## 怎么构建
20
+
21
+ ```bash
22
+ # 在 macOS(arm64)上:
23
+ cd dsh-live2d-pet-desktop
24
+ npm run build:portable # 编 release → dist/DSH桌宠.app + dist/dsh-pet-live2d-desktop
25
+ node tools/npm-prepare-subpackage.mjs --sub darwin-arm64
26
+ ```
27
+
28
+ Windows 上跑不了这个平台(`cargo build` 需要 macOS SDK)。CI 那边是
29
+ `.github/workflows/desktop-mac.yml`(`macos-14` runner),产物同时作为
30
+ workflow artifact 与 Release 附件。
31
+
32
+ ## 发布纪律(两步,顺序不能反)
33
+
34
+ 主包 `optionalDependencies` **现在还没有**这一行 —— 加了就等于让所有用户去装一个
35
+ npm 上不存在的包。要发的时候:
36
+
37
+ 1. 先把子包发上 npm:`npm publish` 于 `npm/desktop-darwin-arm64/`(版本必须与主包逐字相同,
38
+ `npm-prepare-subpackage.mjs` 会校验);
39
+ 2. 再给 `dsh-live2d-pet/package.json` 的 `optionalDependencies` 加
40
+ `"dsh-pet-live2d-desktop-darwin-arm64": "<主包版本>"`,然后发主包。
41
+
42
+ 反过来做的话,主包上线时那个版本的子包还不存在 —— 用户装完"桌面"那一项直接不可用。
43
+
44
+ ## 已知代价(macOS 特有)
45
+
46
+ - **没有签名与公证**:从 Release 下载的产物会被 Gatekeeper 拦下("无法验证开发者")。
47
+ 用户要右键→打开,或者 `xattr -dr com.apple.quarantine <路径>`。想让双击就能开,
48
+ 需要 Apple Developer ID($99/年)+ 公证,这一步在 CI 里也能做,但要先有证书。
49
+ - **只在 Apple Silicon 上构建与验证**:Intel Mac(`darwin-x64`)要另加一个
50
+ `macos-15-intel` runner 的矩阵项 —— 清单与代码都已经按平台表写好了,加一行即可。
51
+ - **真机行为尚未验证**:本项目的开发与全部驱动都跑在 Windows 上。
52
+ mac 上"能不能点、能不能穿透、跟不跟手"属于**未验证区**,别在 README 里当既成事实写。
Binary file
package/package.json ADDED
@@ -0,0 +1,30 @@
1
+ {
2
+ "name": "dsh-pet-live2d-desktop-darwin-arm64",
3
+ "version": "3.1.0",
4
+ "description": "dsh-pet-live2d 的桌面端二进制(macOS arm64 / Apple Silicon):让桌宠站在桌面上而不是 DSH 页面里。由主包按需安装,不需要手动装。",
5
+ "license": "MIT",
6
+ "os": [
7
+ "darwin"
8
+ ],
9
+ "cpu": [
10
+ "arm64"
11
+ ],
12
+ "files": [
13
+ "bin/dsh-pet-live2d-desktop",
14
+ "README.md"
15
+ ],
16
+ "keywords": [
17
+ "dsh",
18
+ "dsh-plugin",
19
+ "live2d",
20
+ "desktop-pet"
21
+ ],
22
+ "repository": {
23
+ "type": "git",
24
+ "url": "git+https://github.com/A8Chann/dsh-pet-live2d.git"
25
+ },
26
+ "homepage": "https://github.com/A8Chann/dsh-pet-live2d#readme",
27
+ "bugs": {
28
+ "url": "https://github.com/A8Chann/dsh-pet-live2d/issues"
29
+ }
30
+ }