desktop-pet-app 0.3.4 → 0.3.5

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 CHANGED
@@ -36,6 +36,8 @@ desktop-pet
36
36
  npm update --global desktop-pet-app
37
37
  ```
38
38
 
39
+ `desktop-pet` 会比较 npm 包与 `/Applications/Desktop Pet.app` 的版本并启动较新者,同版本优先原生应用。两者共享 `~/Library/Application Support/Desktop Pet` 中的用户数据;该目录不是程序安装目录。npm 不会绕过系统安装器直接写入 `/Applications`。
40
+
39
41
  如果使用 macOS `.pkg` 或 Windows 安装包安装,桌宠会从服务器的更新接口发现、下载并安装新版本。
40
42
 
41
43
  ## 发布者命令
package/out/main/index.js CHANGED
@@ -3201,6 +3201,9 @@ function createPetTemplateImage() {
3201
3201
  return image;
3202
3202
  }
3203
3203
  configureRuntimeIdentity();
3204
+ if (process.platform !== "win32") {
3205
+ process.once("SIGTERM", () => electron.app.quit());
3206
+ }
3204
3207
  registerAccountProtocol();
3205
3208
  const singleInstance = electron.app.requestSingleInstanceLock();
3206
3209
  if (!singleInstance) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "desktop-pet-app",
3
- "version": "0.3.4",
3
+ "version": "0.3.5",
4
4
  "description": "AI desktop pet with MCP support and a self-hosted relay server",
5
5
  "license": "MIT",
6
6
  "keywords": [