Skip to content

Commit c2f7dad

Browse files
committed
feat: release 0.0.0-alpha.0
1 parent 481f1b8 commit c2f7dad

File tree

8 files changed

+13
-15
lines changed

8 files changed

+13
-15
lines changed

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# MusicFree 桌面版
2+
3+
来不及写了,过两天再写吧。。。

forge.config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import path from "path";
1212
const config: ForgeConfig = {
1313
packagerConfig: {
1414
appBundleId: "fun.upup.musicfree",
15-
// icon: path.resolve(__dirname, "res/logo"),
15+
icon: path.resolve(__dirname, "res/logo"),
1616
executableName: "MusicFree",
1717
extraResource: [
1818
path.resolve(__dirname, 'res'),

release/version.json

+3-7
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
{
2-
"version": "0.1.0-alpha.0",
2+
"version": "0.0.0-alpha.0",
33
"changeLog": [
4-
"1. 【功能】新增“推荐歌单”功能,需要配合支持该功能的插件使用",
5-
"2. 【功能】导入本地文件时增加“全选”按钮",
6-
"3. 【优化】修改“保存专辑封面”时的提示文案",
7-
"4. 【修复】修复当目标歌曲在播放列表内时,添加到下一首播放无效的问题",
8-
"5. 【插件】部分插件更新,侧边栏更新插件即可"
4+
"1. 初始版本"
95
],
10-
"download": ["https://wwzb.lanzoue.com/b04272h7a"]
6+
"download": ["https://wwzb.lanzoue.com/b042daj1a"]
117
}

res/logo.ico

8 KB
Binary file not shown.

res/logo.png

59 KB
Loading

src/main/tray/index.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import {
44
MenuItemConstructorOptions,
55
Tray,
66
app,
7+
nativeImage,
78
} from "electron";
89
import { showMainWindow } from "../window";
910
import { currentMusicInfoStore } from "../store/current-music";
@@ -16,9 +17,7 @@ import { setDesktopLyricLock, setLyricWindow } from "../ipc";
1617
let tray: Tray | null = null;
1718

1819
export function setupTray() {
19-
const iconPath = getResPath("logo.ico");
20-
21-
tray = new Tray(iconPath);
20+
tray = new Tray(nativeImage.createFromPath(getResPath('logo.png')));
2221

2322
tray.on("double-click", () => {
2423
showMainWindow();

src/main/window/lyric-window.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { BrowserWindow, app } from "electron";
1+
import { BrowserWindow, app, nativeImage } from "electron";
22
import { getResPath } from "../util";
33
import injectGlobalData from "./common/inject-global-data";
44
import makeWindowFullyDraggable from "./common/make-window-fully-draggable";
@@ -38,7 +38,7 @@ export const createLyricWindow = (): BrowserWindow => {
3838
frame: false,
3939
skipTaskbar: true,
4040
alwaysOnTop: true,
41-
icon: getResPath("logo.ico"),
41+
icon: nativeImage.createFromPath(getResPath('logo.png')),
4242
});
4343

4444
// and load the index.html of the app.

src/main/window/main-window.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { localPluginName } from "@/common/constant";
2-
import { BrowserWindow, app } from "electron";
2+
import { BrowserWindow, app, nativeImage } from "electron";
33
import { getResPath } from "../util";
44
import { getAppConfigPath } from "@/common/app-config/main";
55
import injectGlobalData from "./common/inject-global-data";
@@ -26,7 +26,7 @@ export const createMainWindow = (): BrowserWindow => {
2626
},
2727
resizable: false,
2828
frame: false,
29-
icon: getResPath("logo.ico"),
29+
icon: nativeImage.createFromPath(getResPath('logo.png')),
3030
});
3131

3232
// and load the index.html of the app.

0 commit comments

Comments
 (0)