更新 Electron 到 v15.2.0
parent
5fdba7720c
commit
8b0fc9bf5f
|
@ -36,7 +36,7 @@
|
||||||
|
|
||||||
所用技术栈:
|
所用技术栈:
|
||||||
|
|
||||||
- Electron 13
|
- Electron 15
|
||||||
- Vue 2
|
- Vue 2
|
||||||
|
|
||||||
已支持的平台:
|
已支持的平台:
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
const path = require('path')
|
const path = require('path')
|
||||||
|
const ESLintPlugin = require('eslint-webpack-plugin')
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
target: 'electron-main',
|
target: 'electron-main',
|
||||||
|
@ -18,17 +19,6 @@ module.exports = {
|
||||||
},
|
},
|
||||||
module: {
|
module: {
|
||||||
rules: [
|
rules: [
|
||||||
{
|
|
||||||
test: /\.js$/,
|
|
||||||
use: {
|
|
||||||
loader: 'eslint-loader',
|
|
||||||
options: {
|
|
||||||
formatter: require('eslint-formatter-friendly'),
|
|
||||||
},
|
|
||||||
},
|
|
||||||
exclude: /node_modules/,
|
|
||||||
enforce: 'pre',
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
test: /\.node$/,
|
test: /\.node$/,
|
||||||
use: 'node-loader',
|
use: 'node-loader',
|
||||||
|
@ -38,4 +28,7 @@ module.exports = {
|
||||||
performance: {
|
performance: {
|
||||||
maxEntrypointSize: 300000,
|
maxEntrypointSize: 300000,
|
||||||
},
|
},
|
||||||
|
plugins: [
|
||||||
|
new ESLintPlugin(),
|
||||||
|
],
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,6 +3,7 @@ const VueLoaderPlugin = require('vue-loader/lib/plugin')
|
||||||
const HTMLPlugin = require('html-webpack-plugin')
|
const HTMLPlugin = require('html-webpack-plugin')
|
||||||
const MiniCssExtractPlugin = require('mini-css-extract-plugin')
|
const MiniCssExtractPlugin = require('mini-css-extract-plugin')
|
||||||
const CleanCSSPlugin = require('less-plugin-clean-css')
|
const CleanCSSPlugin = require('less-plugin-clean-css')
|
||||||
|
const ESLintPlugin = require('eslint-webpack-plugin')
|
||||||
|
|
||||||
const vueLoaderConfig = require('../vue-loader.config')
|
const vueLoaderConfig = require('../vue-loader.config')
|
||||||
const { mergeCSSLoader } = require('../utils')
|
const { mergeCSSLoader } = require('../utils')
|
||||||
|
@ -32,18 +33,6 @@ module.exports = {
|
||||||
},
|
},
|
||||||
module: {
|
module: {
|
||||||
rules: [
|
rules: [
|
||||||
{
|
|
||||||
test: /\.(vue|js)$/,
|
|
||||||
use: {
|
|
||||||
loader: 'eslint-loader',
|
|
||||||
options: {
|
|
||||||
formatter: require('eslint-formatter-friendly'),
|
|
||||||
emitWarning: isDev,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
exclude: /node_modules/,
|
|
||||||
enforce: 'pre',
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
test: /\.node$/,
|
test: /\.node$/,
|
||||||
use: 'node-loader',
|
use: 'node-loader',
|
||||||
|
@ -147,5 +136,8 @@ module.exports = {
|
||||||
filename: isDev ? '[name].css' : '[name].[contenthash:8].css',
|
filename: isDev ? '[name].css' : '[name].[contenthash:8].css',
|
||||||
chunkFilename: isDev ? '[id].css' : '[id].[contenthash:8].css',
|
chunkFilename: isDev ? '[id].css' : '[id].[contenthash:8].css',
|
||||||
}),
|
}),
|
||||||
|
new ESLintPlugin({
|
||||||
|
extensions: ['js', 'vue'],
|
||||||
|
}),
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,6 +3,7 @@ const VueLoaderPlugin = require('vue-loader/lib/plugin')
|
||||||
const HTMLPlugin = require('html-webpack-plugin')
|
const HTMLPlugin = require('html-webpack-plugin')
|
||||||
const MiniCssExtractPlugin = require('mini-css-extract-plugin')
|
const MiniCssExtractPlugin = require('mini-css-extract-plugin')
|
||||||
const CleanCSSPlugin = require('less-plugin-clean-css')
|
const CleanCSSPlugin = require('less-plugin-clean-css')
|
||||||
|
const ESLintPlugin = require('eslint-webpack-plugin')
|
||||||
|
|
||||||
const vueLoaderConfig = require('../vue-loader.config')
|
const vueLoaderConfig = require('../vue-loader.config')
|
||||||
const { mergeCSSLoader } = require('../utils')
|
const { mergeCSSLoader } = require('../utils')
|
||||||
|
@ -32,18 +33,6 @@ module.exports = {
|
||||||
},
|
},
|
||||||
module: {
|
module: {
|
||||||
rules: [
|
rules: [
|
||||||
{
|
|
||||||
test: /\.(vue|js)$/,
|
|
||||||
use: {
|
|
||||||
loader: 'eslint-loader',
|
|
||||||
options: {
|
|
||||||
formatter: require('eslint-formatter-friendly'),
|
|
||||||
emitWarning: isDev,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
exclude: /node_modules/,
|
|
||||||
enforce: 'pre',
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
test: /\.node$/,
|
test: /\.node$/,
|
||||||
use: 'node-loader',
|
use: 'node-loader',
|
||||||
|
@ -147,5 +136,8 @@ module.exports = {
|
||||||
filename: isDev ? '[name].css' : '[name].[contenthash:8].css',
|
filename: isDev ? '[name].css' : '[name].[contenthash:8].css',
|
||||||
chunkFilename: isDev ? '[id].css' : '[id].[contenthash:8].css',
|
chunkFilename: isDev ? '[id].css' : '[id].[contenthash:8].css',
|
||||||
}),
|
}),
|
||||||
|
new ESLintPlugin({
|
||||||
|
extensions: ['js', 'vue'],
|
||||||
|
}),
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
50
package.json
50
package.json
|
@ -70,7 +70,7 @@
|
||||||
"up": "cross-env ELECTRON_GET_USE_PROXY=true GLOBAL_AGENT_HTTPS_PROXY=http://localhost:1081 npm i"
|
"up": "cross-env ELECTRON_GET_USE_PROXY=true GLOBAL_AGENT_HTTPS_PROXY=http://localhost:1081 npm i"
|
||||||
},
|
},
|
||||||
"browserslist": [
|
"browserslist": [
|
||||||
"Electron 13.3.0"
|
"Electron 15.2.0"
|
||||||
],
|
],
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">= 14"
|
"node": ">= 14"
|
||||||
|
@ -166,51 +166,51 @@
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/lyswhut/lx-music-desktop#readme",
|
"homepage": "https://github.com/lyswhut/lx-music-desktop#readme",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "^7.15.5",
|
"@babel/core": "^7.15.8",
|
||||||
"@babel/plugin-proposal-class-properties": "^7.14.5",
|
"@babel/plugin-proposal-class-properties": "^7.14.5",
|
||||||
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
||||||
"@babel/plugin-transform-modules-umd": "^7.14.5",
|
"@babel/plugin-transform-modules-umd": "^7.14.5",
|
||||||
"@babel/plugin-transform-runtime": "^7.15.0",
|
"@babel/plugin-transform-runtime": "^7.15.8",
|
||||||
"@babel/polyfill": "^7.12.1",
|
"@babel/polyfill": "^7.12.1",
|
||||||
"@babel/preset-env": "^7.15.6",
|
"@babel/preset-env": "^7.15.8",
|
||||||
"babel-eslint": "^10.1.0",
|
"babel-eslint": "^10.1.0",
|
||||||
"babel-loader": "^8.2.2",
|
"babel-loader": "^8.2.2",
|
||||||
"babel-preset-minify": "^0.5.1",
|
"babel-preset-minify": "^0.5.1",
|
||||||
"browserslist": "^4.17.2",
|
"browserslist": "^4.17.4",
|
||||||
"cfonts": "^2.10.0",
|
"cfonts": "^2.10.0",
|
||||||
"chalk": "^4.1.2",
|
"chalk": "^4.1.2",
|
||||||
"changelog-parser": "^2.8.0",
|
"changelog-parser": "^2.8.0",
|
||||||
"copy-webpack-plugin": "^9.0.1",
|
"copy-webpack-plugin": "^9.0.1",
|
||||||
"core-js": "^3.18.1",
|
"core-js": "^3.18.3",
|
||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
"css-loader": "^6.3.0",
|
"css-loader": "^6.4.0",
|
||||||
"css-minimizer-webpack-plugin": "^3.0.2",
|
"css-minimizer-webpack-plugin": "^3.1.1",
|
||||||
"del": "^6.0.0",
|
"del": "^6.0.0",
|
||||||
"electron": "^13.4.0",
|
"electron": "^15.2.0",
|
||||||
"electron-builder": "^22.11.7",
|
"electron-builder": "^22.13.1",
|
||||||
"electron-debug": "^3.2.0",
|
"electron-debug": "^3.2.0",
|
||||||
"electron-devtools-installer": "^3.2.0",
|
"electron-devtools-installer": "^3.2.0",
|
||||||
"electron-to-chromium": "^1.3.856",
|
"electron-to-chromium": "^1.3.870",
|
||||||
"eslint": "^7.32.0",
|
"eslint": "^7.32.0",
|
||||||
"eslint-config-standard": "^16.0.3",
|
"eslint-config-standard": "^16.0.3",
|
||||||
"eslint-formatter-friendly": "^7.0.0",
|
"eslint-formatter-friendly": "^7.0.0",
|
||||||
"eslint-loader": "^4.0.2",
|
|
||||||
"eslint-plugin-html": "^6.2.0",
|
"eslint-plugin-html": "^6.2.0",
|
||||||
"eslint-plugin-import": "^2.24.2",
|
"eslint-plugin-import": "^2.25.2",
|
||||||
"eslint-plugin-node": "^11.1.0",
|
"eslint-plugin-node": "^11.1.0",
|
||||||
"eslint-plugin-promise": "^5.1.0",
|
"eslint-plugin-promise": "^5.1.0",
|
||||||
"eslint-plugin-standard": "^4.1.0",
|
"eslint-plugin-standard": "^4.1.0",
|
||||||
|
"eslint-webpack-plugin": "^3.0.1",
|
||||||
"file-loader": "^6.2.0",
|
"file-loader": "^6.2.0",
|
||||||
"friendly-errors-webpack-plugin": "^1.7.0",
|
"friendly-errors-webpack-plugin": "^1.7.0",
|
||||||
"html-webpack-plugin": "^5.3.2",
|
"html-webpack-plugin": "^5.4.0",
|
||||||
"less": "^4.1.1",
|
"less": "^4.1.2",
|
||||||
"less-loader": "^10.0.1",
|
"less-loader": "^10.1.0",
|
||||||
"less-plugin-clean-css": "^1.5.1",
|
"less-plugin-clean-css": "^1.5.1",
|
||||||
"markdown-it": "^12.2.0",
|
"markdown-it": "^12.2.0",
|
||||||
"mini-css-extract-plugin": "^2.3.0",
|
"mini-css-extract-plugin": "^2.4.2",
|
||||||
"node-loader": "^2.0.0",
|
"node-loader": "^2.0.0",
|
||||||
"postcss": "^8.3.8",
|
"postcss": "^8.3.9",
|
||||||
"postcss-loader": "^6.1.1",
|
"postcss-loader": "^6.2.0",
|
||||||
"postcss-pxtorem": "^6.0.0",
|
"postcss-pxtorem": "^6.0.0",
|
||||||
"pug": "^3.0.2",
|
"pug": "^3.0.2",
|
||||||
"pug-loader": "^2.4.0",
|
"pug-loader": "^2.4.0",
|
||||||
|
@ -222,14 +222,14 @@
|
||||||
"url-loader": "^4.1.1",
|
"url-loader": "^4.1.1",
|
||||||
"vue-loader": "^15.9.8",
|
"vue-loader": "^15.9.8",
|
||||||
"vue-template-compiler": "^2.6.14",
|
"vue-template-compiler": "^2.6.14",
|
||||||
"webpack": "^5.56.0",
|
"webpack": "^5.58.2",
|
||||||
"webpack-cli": "^4.8.0",
|
"webpack-cli": "^4.9.0",
|
||||||
"webpack-dev-server": "^3.11.2",
|
"webpack-dev-server": "^3.11.2",
|
||||||
"webpack-hot-middleware": "^2.25.1",
|
"webpack-hot-middleware": "^2.25.1",
|
||||||
"webpack-merge": "^5.8.0"
|
"webpack-merge": "^5.8.0"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"bufferutil": "^4.0.4",
|
"bufferutil": "^4.0.5",
|
||||||
"crypto-js": "^4.1.1",
|
"crypto-js": "^4.1.1",
|
||||||
"electron-log": "^4.4.1",
|
"electron-log": "^4.4.1",
|
||||||
"electron-store": "^8.0.1",
|
"electron-store": "^8.0.1",
|
||||||
|
@ -240,12 +240,12 @@
|
||||||
"image-size": "^1.0.0",
|
"image-size": "^1.0.0",
|
||||||
"koa": "^2.13.3",
|
"koa": "^2.13.3",
|
||||||
"long": "^4.0.0",
|
"long": "^4.0.0",
|
||||||
"lrc-file-parser": "^1.2.1",
|
"lrc-file-parser": "^1.2.2",
|
||||||
"needle": "^3.0.0",
|
"needle": "^3.0.0",
|
||||||
"node-id3": "^0.2.3",
|
"node-id3": "^0.2.3",
|
||||||
"request": "^2.88.2",
|
"request": "^2.88.2",
|
||||||
"socket.io": "^4.2.0",
|
"socket.io": "^4.3.0",
|
||||||
"utf-8-validate": "^5.0.6",
|
"utf-8-validate": "^5.0.7",
|
||||||
"vue": "^2.6.14",
|
"vue": "^2.6.14",
|
||||||
"vue-i18n": "^8.26.5",
|
"vue-i18n": "^8.26.5",
|
||||||
"vue-router": "^3.5.2",
|
"vue-router": "^3.5.2",
|
||||||
|
|
|
@ -10,3 +10,7 @@
|
||||||
|
|
||||||
- 修复kg源的歌单链接无法打开的问题
|
- 修复kg源的歌单链接无法打开的问题
|
||||||
- 修复同一首歌的URL、歌词等同时需要换源时的处理问题
|
- 修复同一首歌的URL、歌词等同时需要换源时的处理问题
|
||||||
|
|
||||||
|
### 其他
|
||||||
|
|
||||||
|
- 更新 Electron 到 v15.2.0
|
||||||
|
|
Loading…
Reference in New Issue