mirror of
https://github.com/Kuingsmile/PicList.git
synced 2025-01-23 14:48:13 -05:00
⬆️ Upgrade(electron): electron from 4 to 5
This commit is contained in:
parent
e81b8f428c
commit
9344d7d762
@ -134,7 +134,7 @@
|
|||||||
"cz-customizable": "^5.10.0",
|
"cz-customizable": "^5.10.0",
|
||||||
"del": "^3.0.0",
|
"del": "^3.0.0",
|
||||||
"devtron": "^1.4.0",
|
"devtron": "^1.4.0",
|
||||||
"electron": "4.0.2",
|
"electron": "^5.0.1",
|
||||||
"electron-builder": "^20.38.4",
|
"electron-builder": "^20.38.4",
|
||||||
"electron-debug": "^1.4.0",
|
"electron-debug": "^1.4.0",
|
||||||
"electron-devtools-installer": "^2.2.0",
|
"electron-devtools-installer": "^2.2.0",
|
||||||
|
@ -201,6 +201,8 @@ const createWindow = () => {
|
|||||||
transparent: true,
|
transparent: true,
|
||||||
vibrancy: 'ultra-dark',
|
vibrancy: 'ultra-dark',
|
||||||
webPreferences: {
|
webPreferences: {
|
||||||
|
nodeIntegration: true,
|
||||||
|
nodeIntegrationInWorker: true,
|
||||||
backgroundThrottling: false
|
backgroundThrottling: false
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@ -232,7 +234,9 @@ const createMiniWidow = () => {
|
|||||||
transparent: process.platform !== 'linux',
|
transparent: process.platform !== 'linux',
|
||||||
icon: `${__static}/logo.png`,
|
icon: `${__static}/logo.png`,
|
||||||
webPreferences: {
|
webPreferences: {
|
||||||
backgroundThrottling: false
|
backgroundThrottling: false,
|
||||||
|
nodeIntegration: true,
|
||||||
|
nodeIntegrationInWorker: true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -265,6 +269,8 @@ const createSettingWindow = () => {
|
|||||||
titleBarStyle: 'hidden',
|
titleBarStyle: 'hidden',
|
||||||
webPreferences: {
|
webPreferences: {
|
||||||
backgroundThrottling: false,
|
backgroundThrottling: false,
|
||||||
|
nodeIntegration: true,
|
||||||
|
nodeIntegrationInWorker: true,
|
||||||
webSecurity: false
|
webSecurity: false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -23,6 +23,8 @@ const createRenameWindow = (win) => {
|
|||||||
resizable: false,
|
resizable: false,
|
||||||
vibrancy: 'ultra-dark',
|
vibrancy: 'ultra-dark',
|
||||||
webPreferences: {
|
webPreferences: {
|
||||||
|
nodeIntegration: true,
|
||||||
|
nodeIntegrationInWorker: true,
|
||||||
backgroundThrottling: false
|
backgroundThrottling: false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3750,9 +3750,10 @@ electron-to-chromium@^1.2.7, electron-to-chromium@^1.3.47:
|
|||||||
version "1.3.115"
|
version "1.3.115"
|
||||||
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.115.tgz#fdaa56c19b9f7386dbf29abc1cc632ff5468ff3b"
|
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.115.tgz#fdaa56c19b9f7386dbf29abc1cc632ff5468ff3b"
|
||||||
|
|
||||||
electron@4.0.2:
|
electron@^5.0.1:
|
||||||
version "4.0.2"
|
version "5.0.1"
|
||||||
resolved "https://registry.yarnpkg.com/electron/-/electron-4.0.2.tgz#b5e074c149841490825d0785aa2bc4f5e29bbea4"
|
resolved "https://registry.npm.taobao.org/electron/download/electron-5.0.1.tgz#6bd7bf4d25e9bfce4cccd629d587fba5281f95cc"
|
||||||
|
integrity sha1-a9e/TSXpv85MzNYp1Yf7pSgflcw=
|
||||||
dependencies:
|
dependencies:
|
||||||
"@types/node" "^10.12.18"
|
"@types/node" "^10.12.18"
|
||||||
electron-download "^4.1.0"
|
electron-download "^4.1.0"
|
||||||
|
Loading…
Reference in New Issue
Block a user