refactor: 禁用gpu尝试

pull/180/head
xiaojunnuo 2020-11-11 23:20:30 +08:00
parent 8ae48ae4d7
commit d8a0197063
5 changed files with 1295 additions and 3931 deletions

File diff suppressed because it is too large Load Diff

View File

@ -115,7 +115,9 @@ function quit (app) {
} }
// -------------执行开始--------------- // -------------执行开始---------------
app.disableHardwareAcceleration() // 禁用gpu
// 禁止双开
const isFirstInstance = app.requestSingleInstanceLock() const isFirstInstance = app.requestSingleInstanceLock()
let isShutdown = false let isShutdown = false
if (!isFirstInstance) { if (!isFirstInstance) {
@ -186,6 +188,7 @@ if (!isFirstInstance) {
updateUrl = 'https://dev-sidecar.docmirror.cn/update/' updateUrl = 'https://dev-sidecar.docmirror.cn/update/'
// updateUrl = 'http://localhost/dev-sidecar/' // updateUrl = 'http://localhost/dev-sidecar/'
} }
// 自动更新
updateHandle(win, updateUrl) updateHandle(win, updateUrl)
try { try {
// 最小化到托盘 // 最小化到托盘

View File

@ -9,8 +9,7 @@
"author": "docmirror.cn", "author": "docmirror.cn",
"license": "MPL-2.0", "license": "MPL-2.0",
"private": false, "private": false,
"scripts": { "scripts": {},
},
"dependencies": { "dependencies": {
"agentkeepalive": "^2.1.1", "agentkeepalive": "^2.1.1",
"child_process": "^1.0.2", "child_process": "^1.0.2",
@ -19,6 +18,7 @@
"debug": "^4.1.1", "debug": "^4.1.1",
"dns-over-http": "^0.2.0", "dns-over-http": "^0.2.0",
"dns-over-tls": "^0.0.8", "dns-over-tls": "^0.0.8",
"is-browser": "^2.1.0",
"json5": "^2.1.3", "json5": "^2.1.3",
"lodash": "^4.7.0", "lodash": "^4.7.0",
"log4js": "^6.3.0", "log4js": "^6.3.0",

View File

@ -1,2 +1,2 @@
require('babel-polyfill') // require('babel-polyfill')
module.exports = require('./mitmproxy') module.exports = require('./mitmproxy')

File diff suppressed because it is too large Load Diff