Update: 补充构建信息

This commit is contained in:
2025-08-08 21:39:43 +08:00
parent 1f954aad35
commit 348d39cf42
3 changed files with 3333 additions and 14 deletions

BIN
build/icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 90 KiB

3292
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,24 +1,62 @@
{ {
"name": "pet", "name": "shuodedaoli-deskpet",
"version": "1.0.0", "version": "0.1.0",
"description": "A cute desktop pet of 'Shuodedaoli' built with Electron and Vue 3.", "description": "A cute desktop pet of 'Shuodedaoli' built with Electron and Vue 3.",
"main": "main/main.js", "main": "main/main.js",
"scripts": { "scripts": {
"dev": "concurrently \"cd renderer && npm run dev\" \"wait-on http://localhost:5173 && cross-env NODE_ENV=development electron .\"", "dev": "concurrently \"cd renderer && npm run dev\" \"wait-on http://localhost:5173 && cross-env NODE_ENV=development electron .\"",
"build": "cd renderer && npm run build && electron-builder", "build": "npm run build:renderer && electron-builder",
"start": "electron ." "start": "electron .",
"build:renderer": "cd renderer && npm run build",
"build:win": "npm run build:renderer && electron-builder --win",
"build:linux": "npm run build:renderer && electron-builder --linux",
"build:all": "npm run build:renderer && electron-builder --win --linux"
},
"build": {
"appId": "com.kisechan.deskpet",
"productName": "说的道理桌面宠物",
"copyright": "Copyright © 2025 Kisechan",
"directories": {
"output": "out"
},
"files": [
"main/",
"renderer/dist/",
"package.json"
],
"win": {
"target": "nsis",
"icon": "build/icon.png"
},
"mac": {
"target": "dmg",
"icon": "build/icon.png"
},
"linux": {
"target": "AppImage",
"icon": "build/icon.png"
}
}, },
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git+https://github.com/Kisechan/Pet.git" "url": "git+https://github.com/Kisechan/Shuodedaoli-Deskpet.git.git"
}, },
"keywords": [], "keywords": [
"electron",
"vue3",
"desktop-pet",
"desktop-widget",
"shuodedaoli",
"meme",
"fun-project",
"opensource"
],
"author": "Kisechan", "author": "Kisechan",
"license": "MIT", "license": "MIT",
"bugs": { "bugs": {
"url": "https://github.com/Kisechan/Pet/issues" "url": "https://github.com/Kisechan/Shuodedaoli-Deskpet.git/issues"
}, },
"homepage": "https://github.com/Kisechan/Pet#readme", "homepage": "https://github.com/Kisechan/Shuodedaoli-Deskpet.git#readme",
"dependencies": { "dependencies": {
"fs-extra": "^11.3.1", "fs-extra": "^11.3.1",
"howler": "^2.2.4", "howler": "^2.2.4",
@ -29,6 +67,7 @@
"concurrently": "^9.2.0", "concurrently": "^9.2.0",
"cross-env": "^10.0.0", "cross-env": "^10.0.0",
"electron": "^37.2.6", "electron": "^37.2.6",
"electron-builder": "^26.0.12",
"vite": "^7.1.1", "vite": "^7.1.1",
"wait-on": "^8.0.4" "wait-on": "^8.0.4"
} }