diff --git a/.workflow/pipeline-build-20220901.yml b/.workflow/pipeline-build-20220901.yml index 3b2bd0d..55bfd2d 100644 --- a/.workflow/pipeline-build-20220901.yml +++ b/.workflow/pipeline-build-20220901.yml @@ -55,6 +55,7 @@ stages: - yarn - yarn package-linux - mv ../release ./release + - rm -r ./release/linux-unpacked artifacts: - name: BUILD_ARTIFACT path: diff --git a/main.js b/main.js index 0933cd7..2eec56e 100644 --- a/main.js +++ b/main.js @@ -30,7 +30,7 @@ let mainMenu = [ selector: 'orderFrontStandardAboutPanel:', }, { - label: 'Preferences...', + label: '首选项...', accelerator: !isOsx ? 'Ctrl+,' : 'Cmd+,', click() { mainWindow.show(); @@ -58,10 +58,10 @@ let mainMenu = [ role: 'unhide' }, { - label: 'Check for updates', + label: '检查更新', accelerator: !isOsx ? 'Ctrl+U' : 'Cmd+U', click() { - checkForUpdates(); + shell.openExternal('spk://store/chat/wewechat'); } }, { @@ -203,7 +203,7 @@ let mainMenu = [ } }, { - label: 'Toggle 群聊', + label: '显示群聊', accelerator: !isOsx ? 'Ctrl+Shift+M' : 'Shift+Cmd+M', click() { mainWindow.show(); @@ -248,7 +248,7 @@ let mainMenu = [ } }, { - label: 'Fork me on Github', + label: '在Gitee主页查看', click() { shell.openExternal('https://gitee.com/spark-community-works-collections/wewechat-plus-plus'); } @@ -258,14 +258,14 @@ let mainMenu = [ ]; let trayMenu = [ { - label: `You have 0 messages`, + label: `您有0条未读消息`, click() { mainWindow.show(); mainWindow.webContents.send('show-messages'); } }, { - label: 'Toggle main window', + label: '打开主窗口', click() { let isVisible = mainWindow.isVisible(); isVisible ? mainWindow.hide() : mainWindow.show(); @@ -275,7 +275,7 @@ let trayMenu = [ type: 'separator' }, { - label: 'Preferences...', + label: '首选项...', accelerator: !isOsx ? 'Ctrl+,' : 'Cmd+,', click() { mainWindow.show(); @@ -283,7 +283,7 @@ let trayMenu = [ } }, { - label: 'Fork me on Github', + label: '在Gitee主页查看', click() { shell.openExternal('https://gitee.com/spark-community-works-collections/wewechat-plus-plus'); } @@ -292,7 +292,7 @@ let trayMenu = [ type: 'separator' }, { - label: 'Toggle DevTools', + label: '打开开发者工具', accelerator: !isOsx ? 'Ctrl+Alt+I' : 'Alt+Command+I', click() { mainWindow.show(); @@ -300,7 +300,7 @@ let trayMenu = [ } }, { - label: 'Hide menu bar icon', + label: '隐藏菜单栏图标', click() { mainWindow.webContents.send('hide-tray'); } @@ -309,7 +309,7 @@ let trayMenu = [ type: 'separator' }, { - label: 'Check for updates', + label: '检查更新', accelerator: !isOsx ? 'Ctrl+U' : 'Cmd+U', click() { checkForUpdates(); @@ -393,7 +393,7 @@ function updateTray(unread = 0) { } // Update unread mesage count - trayMenu[0].label = `You have ${unread} messages`; + trayMenu[0].label = `您有 ${unread} 条未读消息`; if (settings.showOnTray) { if (tray diff --git a/package.json b/package.json index fd8ffc4..03f3fff 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "wewechat", - "version": "1.2.0", + "version": "1.2.0-1", "description": "make weweChat great again!!!", "main": "main.js", "scripts": { @@ -57,7 +57,6 @@ "category": "Chat", "executableName": "wewechat", "target": [ - "deb", "AppImage" ] },