fix: 移除桌面端原生菜单栏

This commit is contained in:
SkyJourney
2026-07-27 22:23:39 +08:00
parent 32a37293d0
commit 8d91d08809
7 changed files with 34 additions and 8 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ npm run make -w @md-to-pdf/desktop
```
版本化目录包、Squirrel `Setup.exe` 和 ZIP 输出到
`apps/desktop/out/v0.4.1/`。该目录被 Git 忽略。公司内部分发以
`apps/desktop/out/v0.4.2/`。该目录被 Git 忽略。公司内部分发以
`Setup.exe` 为正式安装包,ZIP 作为免安装辅助包;当前未配置代码签名,
Windows 首次运行可能显示“未知发布者”提示。
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@md-to-pdf/desktop",
"version": "0.4.1",
"version": "0.4.2",
"private": true,
"productName": "Markdown PDF 导出器",
"description": "Markdown PDF 导出器桌面端",
+3
View File
@@ -3,6 +3,7 @@ import {
BrowserWindow,
dialog,
ipcMain,
Menu,
net,
protocol,
session,
@@ -211,6 +212,7 @@ async function createApplication(
height: 960,
minWidth: 1024,
minHeight: 720,
autoHideMenuBar: true,
show: false,
webPreferences: {
contextIsolation: true,
@@ -357,6 +359,7 @@ async function createApplication(
app
.whenReady()
.then(async () => {
Menu.setApplicationMenu(null);
if (process.platform === "win32") {
app.setAppUserModelId("com.md-to-pdf.desktop");
}
+2 -2
View File
@@ -6,7 +6,7 @@ import {
describe("应用版本", () => {
it("从统一构建版本生成标题徽标", () => {
expect(APP_VERSION).toBe("0.4.1");
expect(APP_VERSION_LABEL).toBe("v0.4.1");
expect(APP_VERSION).toBe("0.4.2");
expect(APP_VERSION_LABEL).toBe("v0.4.2");
});
});