Skip to content

Commit bba31eb

Browse files
authored
✨ feat: 实现基础的任务栏歌词 (#777)
1 parent 8d480ce commit bba31eb

44 files changed

Lines changed: 3911 additions & 35 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Cargo.lock

Lines changed: 161 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
[workspace]
2-
members = ["native/external-media-integration", "native/ferrous-opencc-wasm"]
2+
members = [
3+
"native/external-media-integration",
4+
"native/ferrous-opencc-wasm",
5+
"native/taskbar-lyric",
6+
"native/tools",
7+
]
38

49
resolver = "3"
510

electron-builder.config.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,16 @@ const config: Configuration = {
3030
to: "native",
3131
filter: ["*.node"],
3232
},
33+
{
34+
from: "native/taskbar-lyric",
35+
to: "native",
36+
filter: ["*.node"],
37+
},
38+
{
39+
from: "native/tools",
40+
to: "tools",
41+
filter: ["*.node"],
42+
},
3343
],
3444
win: {
3545
// 可执行文件名

electron.vite.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ export default defineConfig(({ mode }) => {
7272
"@emi": resolve(__dirname, "native/external-media-integration"),
7373
"@shared": resolve(__dirname, "src/types/shared.ts"),
7474
"@opencc": resolve(__dirname, "native/ferrous-opencc-wasm/pkg"),
75+
"@native": resolve(__dirname, "native"),
7576
},
7677
},
7778
css: {

electron/main/ipc/index.ts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
1+
import initCacheIpc from "./ipc-cache";
12
import initFileIpc from "./ipc-file";
23
import initLyricIpc from "./ipc-lyric";
4+
import initMediaIpc from "./ipc-media";
5+
import initMpvIpc from "./ipc-mpv";
6+
import initProtocolIpc from "./ipc-protocol";
7+
import initRendererLogIpc from "./ipc-renderer-log";
38
import initShortcutIpc from "./ipc-shortcut";
9+
import initSocketIpc from "./ipc-socket";
410
import initStoreIpc from "./ipc-store";
511
import initSystemIpc from "./ipc-system";
12+
import initTaskbarIpc from "./ipc-taskbar";
613
import initThumbarIpc from "./ipc-thumbar";
714
import initTrayIpc from "./ipc-tray";
815
import initUpdateIpc from "./ipc-update";
916
import initWindowsIpc from "./ipc-window";
10-
import initProtocolIpc from "./ipc-protocol";
11-
import initCacheIpc from "./ipc-cache";
12-
import initSocketIpc from "./ipc-socket";
13-
import initMediaIpc from "./ipc-media";
14-
import initMpvIpc from "./ipc-mpv";
15-
import initRendererLogIpc from "./ipc-renderer-log";
1617

1718
/**
1819
* 初始化全部 IPC 通信
@@ -34,6 +35,7 @@ const initIpc = (): void => {
3435
initMediaIpc();
3536
initMpvIpc();
3637
initRendererLogIpc();
38+
initTaskbarIpc();
3739
};
3840

3941
export default initIpc;

0 commit comments

Comments
 (0)