Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
897a660289 | |||
c119fbaf7e |
@ -52,5 +52,7 @@ npm run start
|
|||||||
## TODO
|
## TODO
|
||||||
|
|
||||||
- [x] 更美观的说的道理,优化 UI
|
- [x] 更美观的说的道理,优化 UI
|
||||||
- [ ] 更多的哇袄
|
- [x] 更多的哇袄
|
||||||
- [x] 自定义更换不同的道理
|
- [x] 更换不同的道理
|
||||||
|
- [ ] 更完善的托盘
|
||||||
|
- [ ] 实用功能,更贴心的道理
|
@ -270,7 +270,7 @@ function createWindow() {
|
|||||||
// 修改托盘图标路径以确保在开发和生产环境中正确加载
|
// 修改托盘图标路径以确保在开发和生产环境中正确加载
|
||||||
const iconPath = process.env.NODE_ENV === "development"
|
const iconPath = process.env.NODE_ENV === "development"
|
||||||
? path.join(__dirname, "../assets/icon.ico") // 开发环境路径
|
? 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);
|
const trayIcon = nativeImage.createFromPath(iconPath);
|
||||||
if (trayIcon.isEmpty()) {
|
if (trayIcon.isEmpty()) {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "shuodedaoli-deskpet",
|
"name": "shuodedaoli-deskpet",
|
||||||
"version": "0.3.0",
|
"version": "1.0.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": {
|
||||||
|
BIN
renderer/public/images/icon.ico
Normal file
BIN
renderer/public/images/icon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.2 KiB |
Binary file not shown.
Before Width: | Height: | Size: 10 MiB |
Before Width: | Height: | Size: 6.5 MiB After Width: | Height: | Size: 6.5 MiB |
BIN
renderer/public/pets/说的道莉.gif
Normal file
BIN
renderer/public/pets/说的道莉.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 7.8 MiB |
Binary file not shown.
Before Width: | Height: | Size: 58 KiB |
@ -2,7 +2,7 @@
|
|||||||
import { ref, onMounted, reactive, computed } from "vue";
|
import { ref, onMounted, reactive, computed } from "vue";
|
||||||
import { Howl } from "howler";
|
import { Howl } from "howler";
|
||||||
|
|
||||||
import defaultPet from "/public/pets/普通型道理.gif";
|
import defaultPet from "/public/pets/说的道理.gif";
|
||||||
|
|
||||||
// 状态
|
// 状态
|
||||||
const soundFiles = ref([]);
|
const soundFiles = ref([]);
|
||||||
|
Reference in New Issue
Block a user