Merge pull request !2 from shenmo/auto-4915358-master-8749a79f
This commit is contained in:
Riceneeder 2022-09-02 02:10:11 +00:00 committed by Gitee
commit 9c8aaa2f8d
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 15 additions and 15 deletions

View File

@ -55,6 +55,7 @@ stages:
- yarn - yarn
- yarn package-linux - yarn package-linux
- mv ../release ./release - mv ../release ./release
- rm -r ./release/linux-unpacked
artifacts: artifacts:
- name: BUILD_ARTIFACT - name: BUILD_ARTIFACT
path: path:

26
main.js
View File

@ -30,7 +30,7 @@ let mainMenu = [
selector: 'orderFrontStandardAboutPanel:', selector: 'orderFrontStandardAboutPanel:',
}, },
{ {
label: 'Preferences...', label: '首选项...',
accelerator: !isOsx ? 'Ctrl+,' : 'Cmd+,', accelerator: !isOsx ? 'Ctrl+,' : 'Cmd+,',
click() { click() {
mainWindow.show(); mainWindow.show();
@ -58,10 +58,10 @@ let mainMenu = [
role: 'unhide' role: 'unhide'
}, },
{ {
label: 'Check for updates', label: '检查更新',
accelerator: !isOsx ? 'Ctrl+U' : 'Cmd+U', accelerator: !isOsx ? 'Ctrl+U' : 'Cmd+U',
click() { 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', accelerator: !isOsx ? 'Ctrl+Shift+M' : 'Shift+Cmd+M',
click() { click() {
mainWindow.show(); mainWindow.show();
@ -248,7 +248,7 @@ let mainMenu = [
} }
}, },
{ {
label: 'Fork me on Github', label: '在Gitee主页查看',
click() { click() {
shell.openExternal('https://gitee.com/spark-community-works-collections/wewechat-plus-plus'); shell.openExternal('https://gitee.com/spark-community-works-collections/wewechat-plus-plus');
} }
@ -258,14 +258,14 @@ let mainMenu = [
]; ];
let trayMenu = [ let trayMenu = [
{ {
label: `You have 0 messages`, label: `您有0条未读消息`,
click() { click() {
mainWindow.show(); mainWindow.show();
mainWindow.webContents.send('show-messages'); mainWindow.webContents.send('show-messages');
} }
}, },
{ {
label: 'Toggle main window', label: '打开主窗口',
click() { click() {
let isVisible = mainWindow.isVisible(); let isVisible = mainWindow.isVisible();
isVisible ? mainWindow.hide() : mainWindow.show(); isVisible ? mainWindow.hide() : mainWindow.show();
@ -275,7 +275,7 @@ let trayMenu = [
type: 'separator' type: 'separator'
}, },
{ {
label: 'Preferences...', label: '首选项...',
accelerator: !isOsx ? 'Ctrl+,' : 'Cmd+,', accelerator: !isOsx ? 'Ctrl+,' : 'Cmd+,',
click() { click() {
mainWindow.show(); mainWindow.show();
@ -283,7 +283,7 @@ let trayMenu = [
} }
}, },
{ {
label: 'Fork me on Github', label: '在Gitee主页查看',
click() { click() {
shell.openExternal('https://gitee.com/spark-community-works-collections/wewechat-plus-plus'); shell.openExternal('https://gitee.com/spark-community-works-collections/wewechat-plus-plus');
} }
@ -292,7 +292,7 @@ let trayMenu = [
type: 'separator' type: 'separator'
}, },
{ {
label: 'Toggle DevTools', label: '打开开发者工具',
accelerator: !isOsx ? 'Ctrl+Alt+I' : 'Alt+Command+I', accelerator: !isOsx ? 'Ctrl+Alt+I' : 'Alt+Command+I',
click() { click() {
mainWindow.show(); mainWindow.show();
@ -300,7 +300,7 @@ let trayMenu = [
} }
}, },
{ {
label: 'Hide menu bar icon', label: '隐藏菜单栏图标',
click() { click() {
mainWindow.webContents.send('hide-tray'); mainWindow.webContents.send('hide-tray');
} }
@ -309,7 +309,7 @@ let trayMenu = [
type: 'separator' type: 'separator'
}, },
{ {
label: 'Check for updates', label: '检查更新',
accelerator: !isOsx ? 'Ctrl+U' : 'Cmd+U', accelerator: !isOsx ? 'Ctrl+U' : 'Cmd+U',
click() { click() {
checkForUpdates(); checkForUpdates();
@ -393,7 +393,7 @@ function updateTray(unread = 0) {
} }
// Update unread mesage count // Update unread mesage count
trayMenu[0].label = `You have ${unread} messages`; trayMenu[0].label = `您有 ${unread} 条未读消息`;
if (settings.showOnTray) { if (settings.showOnTray) {
if (tray if (tray

View File

@ -1,6 +1,6 @@
{ {
"name": "wewechat", "name": "wewechat",
"version": "1.2.0", "version": "1.2.0-1",
"description": "make weweChat great again!!!", "description": "make weweChat great again!!!",
"main": "main.js", "main": "main.js",
"scripts": { "scripts": {
@ -57,7 +57,6 @@
"category": "Chat", "category": "Chat",
"executableName": "wewechat", "executableName": "wewechat",
"target": [ "target": [
"deb",
"AppImage" "AppImage"
] ]
}, },