Skip to content

Commit

Permalink
feat: release 0.0.0-alpha.0
Browse files Browse the repository at this point in the history
  • Loading branch information
maotoumao committed Jul 23, 2023
1 parent 481f1b8 commit c2f7dad
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 15 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# MusicFree 桌面版

来不及写了,过两天再写吧。。。
2 changes: 1 addition & 1 deletion forge.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import path from "path";
const config: ForgeConfig = {
packagerConfig: {
appBundleId: "fun.upup.musicfree",
// icon: path.resolve(__dirname, "res/logo"),
icon: path.resolve(__dirname, "res/logo"),
executableName: "MusicFree",
extraResource: [
path.resolve(__dirname, 'res'),
Expand Down
10 changes: 3 additions & 7 deletions release/version.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
{
"version": "0.1.0-alpha.0",
"version": "0.0.0-alpha.0",
"changeLog": [
"1. 【功能】新增“推荐歌单”功能,需要配合支持该功能的插件使用",
"2. 【功能】导入本地文件时增加“全选”按钮",
"3. 【优化】修改“保存专辑封面”时的提示文案",
"4. 【修复】修复当目标歌曲在播放列表内时,添加到下一首播放无效的问题",
"5. 【插件】部分插件更新,侧边栏更新插件即可"
"1. 初始版本"
],
"download": ["https://wwzb.lanzoue.com/b04272h7a"]
"download": ["https://wwzb.lanzoue.com/b042daj1a"]
}
Binary file modified res/logo.ico
Binary file not shown.
Binary file added res/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 2 additions & 3 deletions src/main/tray/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
MenuItemConstructorOptions,
Tray,
app,
nativeImage,
} from "electron";
import { showMainWindow } from "../window";
import { currentMusicInfoStore } from "../store/current-music";
Expand All @@ -16,9 +17,7 @@ import { setDesktopLyricLock, setLyricWindow } from "../ipc";
let tray: Tray | null = null;

export function setupTray() {
const iconPath = getResPath("logo.ico");

tray = new Tray(iconPath);
tray = new Tray(nativeImage.createFromPath(getResPath('logo.png')));

tray.on("double-click", () => {
showMainWindow();
Expand Down
4 changes: 2 additions & 2 deletions src/main/window/lyric-window.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BrowserWindow, app } from "electron";
import { BrowserWindow, app, nativeImage } from "electron";
import { getResPath } from "../util";
import injectGlobalData from "./common/inject-global-data";
import makeWindowFullyDraggable from "./common/make-window-fully-draggable";
Expand Down Expand Up @@ -38,7 +38,7 @@ export const createLyricWindow = (): BrowserWindow => {
frame: false,
skipTaskbar: true,
alwaysOnTop: true,
icon: getResPath("logo.ico"),
icon: nativeImage.createFromPath(getResPath('logo.png')),
});

// and load the index.html of the app.
Expand Down
4 changes: 2 additions & 2 deletions src/main/window/main-window.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { localPluginName } from "@/common/constant";
import { BrowserWindow, app } from "electron";
import { BrowserWindow, app, nativeImage } from "electron";
import { getResPath } from "../util";
import { getAppConfigPath } from "@/common/app-config/main";
import injectGlobalData from "./common/inject-global-data";
Expand All @@ -26,7 +26,7 @@ export const createMainWindow = (): BrowserWindow => {
},
resizable: false,
frame: false,
icon: getResPath("logo.ico"),
icon: nativeImage.createFromPath(getResPath('logo.png')),
});

// and load the index.html of the app.
Expand Down

0 comments on commit c2f7dad

Please sign in to comment.