Compare commits
1 Commits
v0.3.0
...
c119fbaf7e
Author | SHA1 | Date | |
---|---|---|---|
c119fbaf7e |
@ -52,5 +52,7 @@ npm run start
|
||||
## TODO
|
||||
|
||||
- [x] 更美观的说的道理,优化 UI
|
||||
- [ ] 更多的哇袄
|
||||
- [x] 自定义更换不同的道理
|
||||
- [x] 更多的哇袄
|
||||
- [x] 更换不同的道理
|
||||
- [ ] 更完善的托盘
|
||||
- [ ] 实用功能,更贴心的道理
|
@ -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()) {
|
||||
|
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 |
Reference in New Issue
Block a user