2 Commits
v0.3.0 ... main

Author SHA1 Message Date
897a660289 Feat: “说的道莉”素材追加 2025-09-10 22:21:47 +08:00
c119fbaf7e Update: 修改 README.md,增添更多 TODOs 2025-09-10 22:06:49 +08:00
9 changed files with 7 additions and 5 deletions

View File

@ -52,5 +52,7 @@ npm run start
## TODO
- [x] 更美观的说的道理,优化 UI
- [ ] 更多的哇袄
- [x] 自定义更换不同的道理
- [x] 更多的哇袄
- [x] 更换不同的道理
- [ ] 更完善的托盘
- [ ] 实用功能,更贴心的道理

View File

@ -270,7 +270,7 @@ function createWindow() {
// 修改托盘图标路径以确保在开发和生产环境中正确加载
const iconPath = process.env.NODE_ENV === "development"
? path.join(__dirname, "../assets/icon.ico") // 开发环境路径
: path.join(process.resourcesPath, "assets/icon.ico"); // 生产环境路径
: path.join(__dirname, "../renderer/public/images/icon.ico"); // 生产环境路径
const trayIcon = nativeImage.createFromPath(iconPath);
if (trayIcon.isEmpty()) {

View File

@ -1,6 +1,6 @@
{
"name": "shuodedaoli-deskpet",
"version": "0.3.0",
"version": "1.0.0",
"description": "A cute desktop pet of 'Shuodedaoli' built with Electron and Vue 3.",
"main": "main/main.js",
"scripts": {

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 MiB

View File

Before

Width:  |  Height:  |  Size: 6.5 MiB

After

Width:  |  Height:  |  Size: 6.5 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.8 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 58 KiB

View File

@ -2,7 +2,7 @@
import { ref, onMounted, reactive, computed } from "vue";
import { Howl } from "howler";
import defaultPet from "/public/pets/普通型道理.gif";
import defaultPet from "/public/pets/说的道理.gif";
// 状态
const soundFiles = ref([]);