Files
SodiumPet/package.json
T
deepseek 9313704918 feat(linux): 支持 Linux / Wayland 桌面运行
- 新增 src/main/platform.ts:Ozone 后端选择(Wayland 优先 XWayland)、
  能力降级封装、XDG 数据目录、缺参 relaunch
- 主进程窗口定位/置顶/跨工作区/拖拽/视线跟随改为平台能力封装
- 托盘失败容错、Linux 窗口图标、pet:// 缺失文件返回 404
- 新增 scripts/linux/{install,run,uninstall}.sh 与启动器、desktop 菜单项、自启动
- 新增 assets/linux 应用图标;README 增加 Linux/Wayland 文档
- 清理仓库根目录误提交的 Chromium 日志文件
2026-12-02 05:13:49 +09:00

83 lines
2.0 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
"name": "xiaona-pet",
"version": "0.1.0",
"private": true,
"description": "小钠 · 化学元素拟人桌宠(Electron)",
"main": "out/main/index.js",
"scripts": {
"build:main": "tsc -p tsconfig.main.json",
"build:renderer": "vite build",
"build": "npm run build:main && npm run build:renderer",
"start": "electron .",
"dev": "node scripts/dev.mjs",
"dist": "electron-builder --win portable --x64",
"pack": "electron-builder --win dir --x64",
"start:linux": "bash scripts/linux/run.sh",
"install:linux": "bash scripts/linux/install.sh",
"uninstall:linux": "bash scripts/linux/uninstall.sh"
},
"dependencies": {
"live2dcubismcore": "^1.0.2",
"pixi-live2d-display": "0.4.0",
"pixi.js": "6.5.10",
"react": "^19.3.1",
"react-dom": "^19.3.1"
},
"devDependencies": {
"@types/node": "^22.0.0",
"@types/react": "^19.0.0",
"@types/react-dom": "^19.0.0",
"@vitejs/plugin-react": "^6.3.0",
"electron": "33.4.11",
"typescript": "^5.9.0",
"vite": "^8.4.0"
},
"author": "EL-Cross-Lab",
"license": "MIT",
"build": {
"appId": "lab.elcross.sodiumpet",
"productName": "SodiumPet",
"copyright": "MIT License",
"directories": {
"output": "release",
"buildResources": "assets"
},
"electronDist": "node_modules/electron/dist",
"files": [
"out/**/*",
"assets/**/*",
"package.json"
],
"asar": true,
"win": {
"target": [
{
"target": "portable",
"arch": [
"x64"
]
}
],
"icon": "assets/stickers/1.0.png",
"signAndEditExecutable": false
},
"portable": {
"artifactName": "SodiumPet--portable.exe"
},
"extraResources": [
{
"from": "assets/skins",
"to": "skins"
},
{
"from": "assets/lib",
"to": "lib"
},
{
"from": "assets/stickers",
"to": "stickers"
}
]
}
}