mirror of
https://github.com/marktext/marktext.git
synced 2025-05-02 05:21:38 +08:00
Update dependencies (#3213)
This commit is contained in:
parent
47b3dc1c96
commit
539bdd40ac
@ -1,51 +0,0 @@
|
|||||||
'use strict'
|
|
||||||
const fs = require('fs')
|
|
||||||
const path = require('path')
|
|
||||||
const { exec: execNode } = require("child_process")
|
|
||||||
const util = require('util')
|
|
||||||
|
|
||||||
const exec = util.promisify(execNode)
|
|
||||||
|
|
||||||
// interface AfterPackContext {
|
|
||||||
// outDir: string
|
|
||||||
// appOutDir: string
|
|
||||||
// packager: PlatformPackager<any>
|
|
||||||
// electronPlatformName: string
|
|
||||||
// arch: Arch
|
|
||||||
// targets: Array<Target>
|
|
||||||
// }
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @param {AfterPackContext} context
|
|
||||||
*/
|
|
||||||
const afterPack = async (context) => {
|
|
||||||
// Workaround to remove debug information from production binaries on Linux (Electron#32669).
|
|
||||||
if (context.packager.platform.name === 'linux') {
|
|
||||||
console.log('[afterPack] Removing Electron debug information on Linux')
|
|
||||||
|
|
||||||
const { appOutDir } = context
|
|
||||||
const chromeCrashpadHandlerPath = path.join(appOutDir, 'chrome_crashpad_handler')
|
|
||||||
const libvkPath = path.join(appOutDir, 'libvk_swiftshader.so')
|
|
||||||
|
|
||||||
if (fs.existsSync(chromeCrashpadHandlerPath)) {
|
|
||||||
const { err } = await exec(`strip "${chromeCrashpadHandlerPath}"`)
|
|
||||||
if (err) {
|
|
||||||
console.log('[afterPack] Unable to strip "chrome_crashpad_handler".')
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
console.log(`[afterPack] "chrome_crashpad_handler" doesn't exists: "${chromeCrashpadHandlerPath}".`)
|
|
||||||
}
|
|
||||||
|
|
||||||
if (fs.existsSync(libvkPath)) {
|
|
||||||
const { err } = await exec(`strip "${libvkPath}"`)
|
|
||||||
if (err) {
|
|
||||||
console.log('[afterPack] Unable to strip "libvk_swiftshader.so".')
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
console.log(`[afterPack] "libvk_swiftshader.so" doesn't exists: "${libvkPath}".`)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
exports.default = afterPack
|
|
@ -16,6 +16,8 @@ files:
|
|||||||
- "!node_modules/dagre-d3-renderer/dist/demo/"
|
- "!node_modules/dagre-d3-renderer/dist/demo/"
|
||||||
- "!node_modules/dagre-d3/dist/demo/"
|
- "!node_modules/dagre-d3/dist/demo/"
|
||||||
- "!node_modules/dragula/resources"
|
- "!node_modules/dragula/resources"
|
||||||
|
- "!node_modules/jest-image-snapshot/images/"
|
||||||
|
- "!node_modules/jest-image-snapshot/jest-image-snapshot.png"
|
||||||
- "!node_modules/**/*.js.map"
|
- "!node_modules/**/*.js.map"
|
||||||
- "!node_modules/**/*.cjs.map"
|
- "!node_modules/**/*.cjs.map"
|
||||||
- "!node_modules/**/*.mjs.map"
|
- "!node_modules/**/*.mjs.map"
|
||||||
@ -50,7 +52,6 @@ extraFiles:
|
|||||||
- "LICENSE"
|
- "LICENSE"
|
||||||
- from: "resources/THIRD-PARTY-LICENSES.txt"
|
- from: "resources/THIRD-PARTY-LICENSES.txt"
|
||||||
to: "THIRD-PARTY-LICENSES.txt"
|
to: "THIRD-PARTY-LICENSES.txt"
|
||||||
afterPack: './.electron-vue/electron-builder/afterPack.js'
|
|
||||||
|
|
||||||
fileAssociations:
|
fileAssociations:
|
||||||
- ext:
|
- ext:
|
||||||
|
47
package.json
47
package.json
@ -52,32 +52,33 @@
|
|||||||
"electron-store": "^8.0.1",
|
"electron-store": "^8.0.1",
|
||||||
"electron-window-state": "^5.0.3",
|
"electron-window-state": "^5.0.3",
|
||||||
"element-resize-detector": "^1.2.4",
|
"element-resize-detector": "^1.2.4",
|
||||||
"element-ui": "^2.15.7",
|
"element-ui": "^2.15.8",
|
||||||
"execall": "^2.0.0",
|
"execall": "^2.0.0",
|
||||||
|
"fast-deep-equal": "^3.1.3",
|
||||||
"flowchart.js": "^1.17.1",
|
"flowchart.js": "^1.17.1",
|
||||||
"fontmanager-redux": "^1.1.0",
|
"fontmanager-redux": "^1.1.0",
|
||||||
"fs-extra": "^10.0.1",
|
"fs-extra": "^10.0.1",
|
||||||
"fuzzaldrin": "^2.1.0",
|
"fuzzaldrin": "^2.1.0",
|
||||||
"github-markdown-css": "^3.0.1",
|
"github-markdown-css": "^3.0.1",
|
||||||
"html-tags": "^3.1.0",
|
"html-tags": "^3.2.0",
|
||||||
"iconv-lite": "^0.6.3",
|
"iconv-lite": "^0.6.3",
|
||||||
"iso-639-1": "^2.1.13",
|
"iso-639-1": "^2.1.13",
|
||||||
"joplin-turndown-plugin-gfm": "^1.0.12",
|
"joplin-turndown-plugin-gfm": "^1.0.12",
|
||||||
"katex": "^0.15.3",
|
"katex": "^0.15.3",
|
||||||
"keytar": "^7.9.0",
|
"keytar": "^7.9.0",
|
||||||
"mermaid": "^8.14.0",
|
"mermaid": "^9.0.0",
|
||||||
"minizlib": "^2.1.2",
|
"minizlib": "^2.1.2",
|
||||||
"native-keymap": "^3.3.0",
|
"native-keymap": "^3.3.0",
|
||||||
"plist": "^3.0.4",
|
"plist": "^3.0.5",
|
||||||
"popper.js": "^1.16.1",
|
"popper.js": "^1.16.1",
|
||||||
"prismjs": "^1.27.0",
|
"prismjs": "^1.27.0",
|
||||||
"snabbdom": "^3.3.1",
|
"snabbdom": "^3.4.0",
|
||||||
"snabbdom-to-html": "^7.0.0",
|
"snabbdom-to-html": "^7.0.0",
|
||||||
"source-map-support": "^0.5.21",
|
"source-map-support": "^0.5.21",
|
||||||
"turndown": "^7.1.1",
|
"turndown": "^7.1.1",
|
||||||
"underscore": "^1.13.2",
|
"underscore": "^1.13.2",
|
||||||
"unsplash-js": "^7.0.15",
|
"unsplash-js": "^7.0.15",
|
||||||
"vega": "^5.22.0",
|
"vega": "^5.22.1",
|
||||||
"vega-embed": "^6.20.8",
|
"vega-embed": "^6.20.8",
|
||||||
"vega-lite": "^5.2.0",
|
"vega-lite": "^5.2.0",
|
||||||
"vscode-ripgrep": "^1.12.1",
|
"vscode-ripgrep": "^1.12.1",
|
||||||
@ -88,7 +89,7 @@
|
|||||||
"webfontloader": "^1.6.28"
|
"webfontloader": "^1.6.28"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "^7.17.7",
|
"@babel/core": "^7.17.9",
|
||||||
"@babel/eslint-parser": "^7.17.0",
|
"@babel/eslint-parser": "^7.17.0",
|
||||||
"@babel/plugin-proposal-class-properties": "^7.16.7",
|
"@babel/plugin-proposal-class-properties": "^7.16.7",
|
||||||
"@babel/plugin-proposal-export-default-from": "^7.16.7",
|
"@babel/plugin-proposal-export-default-from": "^7.16.7",
|
||||||
@ -98,13 +99,13 @@
|
|||||||
"@babel/plugin-transform-runtime": "^7.17.0",
|
"@babel/plugin-transform-runtime": "^7.17.0",
|
||||||
"@babel/preset-env": "^7.16.11",
|
"@babel/preset-env": "^7.16.11",
|
||||||
"@babel/register": "^7.17.7",
|
"@babel/register": "^7.17.7",
|
||||||
"@babel/runtime": "^7.17.7",
|
"@babel/runtime": "^7.17.9",
|
||||||
"@markedjs/html-differ": "^4.0.1",
|
"@markedjs/html-differ": "^4.0.1",
|
||||||
"@playwright/test": "^1.20.0",
|
"@playwright/test": "^1.21.0",
|
||||||
"babel-loader": "^8.2.3",
|
"babel-loader": "^8.2.4",
|
||||||
"babel-plugin-component": "^1.1.1",
|
"babel-plugin-component": "^1.1.1",
|
||||||
"babel-plugin-istanbul": "^6.1.1",
|
"babel-plugin-istanbul": "^6.1.1",
|
||||||
"cfonts": "^2.10.0",
|
"cfonts": "^2.10.1",
|
||||||
"chai": "^4.3.6",
|
"chai": "^4.3.6",
|
||||||
"chalk": "^4.1.2",
|
"chalk": "^4.1.2",
|
||||||
"cheerio": "^1.0.0-rc.10",
|
"cheerio": "^1.0.0-rc.10",
|
||||||
@ -114,34 +115,34 @@
|
|||||||
"del": "^6.0.0",
|
"del": "^6.0.0",
|
||||||
"devtron": "^1.4.0",
|
"devtron": "^1.4.0",
|
||||||
"dotenv": "^16.0.0",
|
"dotenv": "^16.0.0",
|
||||||
"electron": "^17.1.2",
|
"electron": "^18.0.4",
|
||||||
"electron-builder": "^22.14.13",
|
"electron-builder": "^23.0.6",
|
||||||
"electron-devtools-installer": "^3.2.0",
|
"electron-devtools-installer": "^3.2.0",
|
||||||
"electron-rebuild": "^3.2.7",
|
"electron-rebuild": "^3.2.7",
|
||||||
"electron-updater": "^4.6.5",
|
"electron-updater": "^5.0.2",
|
||||||
"eslint": "^8.11.0",
|
"eslint": "^8.13.0",
|
||||||
"eslint-config-standard": "^16.0.3",
|
"eslint-config-standard": "^16.0.3",
|
||||||
"eslint-friendly-formatter": "^4.0.1",
|
"eslint-friendly-formatter": "^4.0.1",
|
||||||
"eslint-import-resolver-alias": "^1.1.2",
|
"eslint-import-resolver-alias": "^1.1.2",
|
||||||
"eslint-plugin-html": "^6.2.0",
|
"eslint-plugin-html": "^6.2.0",
|
||||||
"eslint-plugin-import": "^2.25.4",
|
"eslint-plugin-import": "^2.26.0",
|
||||||
"eslint-plugin-node": "^11.1.0",
|
"eslint-plugin-node": "^11.1.0",
|
||||||
"eslint-plugin-promise": "^6.0.0",
|
"eslint-plugin-promise": "^6.0.0",
|
||||||
"eslint-plugin-standard": "^4.1.0",
|
"eslint-plugin-standard": "^4.1.0",
|
||||||
"eslint-plugin-vue": "^8.5.0",
|
"eslint-plugin-vue": "^8.6.0",
|
||||||
"eslint-webpack-plugin": "^3.1.1",
|
"eslint-webpack-plugin": "^3.1.1",
|
||||||
"esm": "^3.2.25",
|
"esm": "^3.2.25",
|
||||||
"file-loader": "^6.2.0",
|
"file-loader": "^6.2.0",
|
||||||
"git-revision-webpack-plugin": "^5.0.0",
|
"git-revision-webpack-plugin": "^5.0.0",
|
||||||
"html-webpack-plugin": "^5.5.0",
|
"html-webpack-plugin": "^5.5.0",
|
||||||
"imports-loader": "^0.8.0",
|
"imports-loader": "^0.8.0",
|
||||||
"karma": "^6.3.17",
|
"karma": "^6.3.18",
|
||||||
"karma-chai": "^0.1.0",
|
"karma-chai": "^0.1.0",
|
||||||
"karma-coverage": "^2.2.0",
|
"karma-coverage": "^2.2.0",
|
||||||
"karma-electron": "^7.1.0",
|
"karma-electron": "^7.1.0",
|
||||||
"karma-mocha": "^2.0.1",
|
"karma-mocha": "^2.0.1",
|
||||||
"karma-sourcemap-loader": "^0.3.8",
|
"karma-sourcemap-loader": "^0.3.8",
|
||||||
"karma-spec-reporter": "0.0.33",
|
"karma-spec-reporter": "0.0.34",
|
||||||
"karma-webpack": "^5.0.0",
|
"karma-webpack": "^5.0.0",
|
||||||
"license-checker": "^25.0.1",
|
"license-checker": "^25.0.1",
|
||||||
"listr": "^0.14.3",
|
"listr": "^0.14.3",
|
||||||
@ -151,10 +152,10 @@
|
|||||||
"node-fetch": "^2.6.7",
|
"node-fetch": "^2.6.7",
|
||||||
"node-loader": "^2.0.0",
|
"node-loader": "^2.0.0",
|
||||||
"path-browserify": "^1.0.1",
|
"path-browserify": "^1.0.1",
|
||||||
"playwright": "^1.20.0",
|
"playwright": "^1.21.0",
|
||||||
"postcss": "^8.4.12",
|
"postcss": "^8.4.12",
|
||||||
"postcss-loader": "^6.2.1",
|
"postcss-loader": "^6.2.1",
|
||||||
"postcss-preset-env": "^7.4.2",
|
"postcss-preset-env": "^7.4.3",
|
||||||
"raw-loader": "^4.0.2",
|
"raw-loader": "^4.0.2",
|
||||||
"require-dir": "^1.2.0",
|
"require-dir": "^1.2.0",
|
||||||
"stacktrace-parser": "^0.1.10",
|
"stacktrace-parser": "^0.1.10",
|
||||||
@ -168,10 +169,10 @@
|
|||||||
"vue-loader": "^15.9.8",
|
"vue-loader": "^15.9.8",
|
||||||
"vue-style-loader": "^4.1.3",
|
"vue-style-loader": "^4.1.3",
|
||||||
"vue-template-compiler": "^2.6.14",
|
"vue-template-compiler": "^2.6.14",
|
||||||
"webpack": "^5.70.0",
|
"webpack": "^5.72.0",
|
||||||
"webpack-bundle-analyzer": "^4.5.0",
|
"webpack-bundle-analyzer": "^4.5.0",
|
||||||
"webpack-cli": "^4.9.2",
|
"webpack-cli": "^4.9.2",
|
||||||
"webpack-dev-server": "^4.7.4",
|
"webpack-dev-server": "^4.8.1",
|
||||||
"webpack-hot-middleware": "^2.25.1",
|
"webpack-hot-middleware": "^2.25.1",
|
||||||
"webpack-merge": "^5.8.0"
|
"webpack-merge": "^5.8.0"
|
||||||
},
|
},
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { clipboard, ipcRenderer, shell, webFrame } from 'electron'
|
import { clipboard, ipcRenderer, shell, webFrame } from 'electron'
|
||||||
import path from 'path'
|
import path from 'path'
|
||||||
import equal from 'deep-equal'
|
import equal from 'fast-deep-equal'
|
||||||
import { isSamePathSync } from 'common/filesystem/paths'
|
import { isSamePathSync } from 'common/filesystem/paths'
|
||||||
import bus from '../bus'
|
import bus from '../bus'
|
||||||
import { hasKeys, getUniqueId } from '../util'
|
import { hasKeys, getUniqueId } from '../util'
|
||||||
|
Loading…
Reference in New Issue
Block a user