mirror of
https://github.com/QYG2297248353/IYUUPlus-Windows.git
synced 2025-03-04 11:44:24 +08:00
发布 v1.1.0
This commit is contained in:
parent
9ccbf93c51
commit
4bc8acd75d
53
menu/menu.js
53
menu/menu.js
@ -1,9 +1,12 @@
|
|||||||
const { Menu, BrowserWindow } = require("electron")
|
const { app, Menu, BrowserWindow } = require("electron")
|
||||||
const path = require('node:path')
|
const path = require('node:path')
|
||||||
const server = require('../server/server');
|
const server = require('../server/server');
|
||||||
const mainWin = require('../windows/app');
|
const mainWin = require('../windows/app');
|
||||||
|
|
||||||
const iconPath = path.join(__dirname, '..', 'iyuu.ico')
|
const iconPath = path.join(__dirname, '..', 'iyuu.ico')
|
||||||
|
const iconPngPath = path.join(__dirname, '..', 'iyuu.png')
|
||||||
|
|
||||||
|
const { version } = require('../package.json')
|
||||||
|
|
||||||
let template = [
|
let template = [
|
||||||
{
|
{
|
||||||
@ -28,11 +31,7 @@ let template = [
|
|||||||
let win = new BrowserWindow({
|
let win = new BrowserWindow({
|
||||||
width: 800,
|
width: 800,
|
||||||
height: 600,
|
height: 600,
|
||||||
icon: iconPath,
|
icon: iconPath
|
||||||
webPreferences: {
|
|
||||||
nodeIntegration: true,
|
|
||||||
contextIsolation: false,
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
win.loadURL("https://doc.iyuu.cn/");
|
win.loadURL("https://doc.iyuu.cn/");
|
||||||
win.on("closed", () => {
|
win.on("closed", () => {
|
||||||
@ -40,6 +39,20 @@ let template = [
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
label: "数据统计",
|
||||||
|
click: () => {
|
||||||
|
let win = new BrowserWindow({
|
||||||
|
width: 800,
|
||||||
|
height: 600,
|
||||||
|
icon: iconPath
|
||||||
|
});
|
||||||
|
win.loadURL("https://analytics.lifebus.top/share/uz482jXYOxwnoRRZ/iyuu.lifebus.top");
|
||||||
|
win.on("closed", () => {
|
||||||
|
win = null;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -51,11 +64,7 @@ let template = [
|
|||||||
let win = new BrowserWindow({
|
let win = new BrowserWindow({
|
||||||
width: 800,
|
width: 800,
|
||||||
height: 600,
|
height: 600,
|
||||||
icon: iconPath,
|
icon: iconPath
|
||||||
webPreferences: {
|
|
||||||
nodeIntegration: true,
|
|
||||||
contextIsolation: false,
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
win.loadURL("https://gitee.com/qyg2297248353/iyuuplus-windows/issues");
|
win.loadURL("https://gitee.com/qyg2297248353/iyuuplus-windows/issues");
|
||||||
win.on("closed", () => {
|
win.on("closed", () => {
|
||||||
@ -69,20 +78,28 @@ let template = [
|
|||||||
let win = new BrowserWindow({
|
let win = new BrowserWindow({
|
||||||
width: 800,
|
width: 800,
|
||||||
height: 600,
|
height: 600,
|
||||||
icon: iconPath,
|
icon: iconPath
|
||||||
webPreferences: {
|
|
||||||
nodeIntegration: true,
|
|
||||||
contextIsolation: false,
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
win.loadURL("https://lifebus.top/");
|
win.loadURL("https://blog.lifebus.top/");
|
||||||
win.on("closed", () => {
|
win.on("closed", () => {
|
||||||
win = null;
|
win = null;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "关于"
|
label: "关于",
|
||||||
|
click: () => {
|
||||||
|
app.setAboutPanelOptions({
|
||||||
|
applicationName: "IYUU Plus Windows",
|
||||||
|
applicationVersion: version,
|
||||||
|
version: version,
|
||||||
|
copyright: "新疆萌森软件开发工作室",
|
||||||
|
authors: ["新疆萌森软件开发工作室", "大卫"],
|
||||||
|
website: "https://blog.lifebus.top/",
|
||||||
|
iconPath: iconPngPath
|
||||||
|
})
|
||||||
|
app.showAboutPanel()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "iyuu-plus",
|
"name": "iyuu-plus",
|
||||||
"version": "1.0.0",
|
"version": "1.1.0",
|
||||||
"description": "基于特征码的索引工具",
|
"description": "基于特征码的索引工具",
|
||||||
"main": "main.js",
|
"main": "main.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
@ -13,7 +13,11 @@
|
|||||||
"url": "https://gitee.com/qyg2297248353/iyuuplus-windows.git"
|
"url": "https://gitee.com/qyg2297248353/iyuuplus-windows.git"
|
||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"iyuu"
|
"iyuu",
|
||||||
|
"辅种",
|
||||||
|
"种子",
|
||||||
|
"pt",
|
||||||
|
"计划任务"
|
||||||
],
|
],
|
||||||
"author": "新疆萌森软件开发工作室",
|
"author": "新疆萌森软件开发工作室",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
@ -31,7 +35,6 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"electron-log": "^5.1.5",
|
"electron-log": "^5.1.5",
|
||||||
"electron-squirrel-startup": "^1.0.1",
|
"electron-squirrel-startup": "^1.0.1",
|
||||||
"jquery": "^3.7.1",
|
|
||||||
"tree-kill": "^1.2.2"
|
"tree-kill": "^1.2.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user