Browse Source

refactor: 禁用gpu尝试

pull/180/head
xiaojunnuo 4 years ago
parent
commit
d8a0197063
  1. 1330
      packages/gui/package-lock.json
  2. 3
      packages/gui/src/background.js
  3. 4
      packages/mitmproxy/package.json
  4. 2
      packages/mitmproxy/src/lib/proxy/index.js
  5. 3969
      packages/mitmproxy/yarn.lock

1330
packages/gui/package-lock.json generated

File diff suppressed because it is too large Load Diff

3
packages/gui/src/background.js

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

4
packages/mitmproxy/package.json

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

2
packages/mitmproxy/src/lib/proxy/index.js

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

3969
packages/mitmproxy/yarn.lock

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save