[{"data":1,"prerenderedAt":3631},["ShallowReactive",2],{"navigation":3,"/document/electron/delivery/package-update":1617,"/document/electron/delivery/package-update-surround":3626},[4],{"title":5,"path":6,"stem":7,"children":8,"page":50},"Document","/document","document",[9,51,118,150,207,263,307,343,363,403,447,479,518,558,585,609,633,665,700,731,762,794,831,863,899,929,964,1000,1036,1075,1110,1149,1181,1212,1243,1271,1307,1346,1378,1418,1455,1487,1519],{"title":10,"path":11,"stem":12,"children":13,"page":50},"Html5","/document/html5","document/01.html5",[14,42],{"title":15,"path":16,"stem":17,"children":18,"icon":41},"指南","/document/html5/guide","document/01.html5/01.guide/01.index",[19,21,25,29,33,37],{"title":20,"path":16,"stem":17},"HTML 入门教程",{"title":22,"path":23,"stem":24},"常用标签详解","/document/html5/guide/tag","document/01.html5/01.guide/02.tag",{"title":26,"path":27,"stem":28},"布局与语义标签","/document/html5/guide/layout","document/01.html5/01.guide/03.layout",{"title":30,"path":31,"stem":32},"表单设计与用户输入","/document/html5/guide/form","document/01.html5/01.guide/04.form",{"title":34,"path":35,"stem":36},"多媒体与 HTML5 新特性","/document/html5/guide/html5","document/01.html5/01.guide/05.html5",{"title":38,"path":39,"stem":40},"Web 标准与 HTML 编写规范","/document/html5/guide/web","document/01.html5/01.guide/06.web","i-lucide-code",{"title":43,"path":44,"stem":45,"children":46,"icon":49},"考核","/document/html5/examine","document/01.html5/02.examine/01.index",[47],{"title":48,"path":44,"stem":45},"接下来对你进行考核","i-lucide-clipboard-check",false,{"title":52,"path":53,"stem":54,"children":55,"page":50},"Css","/document/css","document/02.css",[56,75,100,113],{"title":57,"path":58,"stem":59,"children":60,"icon":50},"启航","/document/css/guide","document/02.css/01.guide/01.index",[61,63,67,71],{"title":62,"path":58,"stem":59},"CSS 基础入门教程",{"title":64,"path":65,"stem":66},"文本与盒子样式详解","/document/css/guide/styles","document/02.css/01.guide/02.styles",{"title":68,"path":69,"stem":70},"选择器与权重机制","/document/css/guide/selected","document/02.css/01.guide/03.selected",{"title":72,"path":73,"stem":74},"盒模型详解","/document/css/guide/box","document/02.css/01.guide/04.box",{"title":76,"icon":50,"path":77,"stem":78,"children":79,"page":50},"布局","/document/css/layout","document/02.css/02.layout",[80,84,88,92,96],{"title":81,"path":82,"stem":83},"网页布局三剑客详解","/document/css/layout/policy","document/02.css/02.layout/01.policy",{"title":85,"path":86,"stem":87},"Position 定位详解","/document/css/layout/position","document/02.css/02.layout/02.position",{"title":89,"path":90,"stem":91},"Flexbox 布局入门指南","/document/css/layout/flex","document/02.css/02.layout/03.flex",{"title":93,"path":94,"stem":95},"Grid 布局入门指南","/document/css/layout/grid","document/02.css/02.layout/04.grid",{"title":97,"path":98,"stem":99},"响应式设计指南","/document/css/layout/relative","document/02.css/02.layout/05.relative",{"title":101,"icon":50,"path":102,"stem":103,"children":104,"page":50},"使用技巧","/document/css/skill","document/02.css/03.skill",[105,109],{"title":106,"path":107,"stem":108},"CSS 动画全解析","/document/css/skill/animation","document/02.css/03.skill/01.animation",{"title":110,"path":111,"stem":112},"CSS 使用技巧全攻略","/document/css/skill/skill","document/02.css/03.skill/02.skill",{"title":43,"path":114,"stem":115,"children":116,"icon":49},"/document/css/examine","document/02.css/04.examine/01.index",[117],{"title":48,"path":114,"stem":115},{"title":119,"path":120,"stem":121,"children":122,"page":50},"Git","/document/git","document/03.git",[123,145],{"title":57,"path":124,"stem":125,"children":126,"icon":50},"/document/git/guide","document/03.git/01.guide/01.index",[127,129,133,137,141],{"title":128,"path":124,"stem":125},"Git 入门指南",{"title":130,"path":131,"stem":132},"Git 安装与初体验","/document/git/guide/install","document/03.git/01.guide/02.install",{"title":134,"path":135,"stem":136},"常用 Git 命令详解","/document/git/guide/command","document/03.git/01.guide/03.command",{"title":138,"path":139,"stem":140},"Git 分支管理全解析","/document/git/guide/branch","document/03.git/01.guide/04.branch",{"title":142,"path":143,"stem":144},"使用 GitHub 轻松托管和管理代码","/document/git/guide/github","document/03.git/01.guide/05.github",{"title":43,"path":146,"stem":147,"children":148,"icon":49},"/document/git/examine","document/03.git/02.examine/01.index",[149],{"title":48,"path":146,"stem":147},{"title":151,"path":152,"stem":153,"children":154,"page":50},"Js Base","/document/js-base","document/04.js-base",[155,185,202],{"title":15,"path":156,"stem":157,"children":158,"icon":41},"/document/js-base/guide","document/04.js-base/01.guide/01.index",[159,161,165,169,173,177,181],{"title":160,"path":156,"stem":157},"JavaScript 基础快速入门",{"title":162,"path":163,"stem":164},"搞懂变量与数据类型","/document/js-base/guide/variable","document/04.js-base/01.guide/02.variable",{"title":166,"path":167,"stem":168},"JavaScript 运算符详解","/document/js-base/guide/operator","document/04.js-base/01.guide/03.operator",{"title":170,"path":171,"stem":172},"条件判断与循环语句","/document/js-base/guide/flow","document/04.js-base/01.guide/04.flow",{"title":174,"path":175,"stem":176},"深入理解 JavaScript 函数","/document/js-base/guide/function","document/04.js-base/01.guide/05.function",{"title":178,"path":179,"stem":180},"对象数组的创建与操作","/document/js-base/guide/object","document/04.js-base/01.guide/06.object",{"title":182,"path":183,"stem":184},"Math 和 Date 用法详解","/document/js-base/guide/math","document/04.js-base/01.guide/07.math",{"title":186,"icon":41,"path":187,"stem":188,"children":189,"page":50},"浏览器","/document/js-base/browser","document/04.js-base/02.browser",[190,194,198],{"title":191,"path":192,"stem":193},"DOM 操作入门与实战","/document/js-base/browser/dom","document/04.js-base/02.browser/01.dom",{"title":195,"path":196,"stem":197},"浏览器 BOM 基础知识","/document/js-base/browser/bom","document/04.js-base/02.browser/02.bom",{"title":199,"path":200,"stem":201},"JavaScript 事件处理机制","/document/js-base/browser/event","document/04.js-base/02.browser/03.event",{"title":43,"path":203,"stem":204,"children":205,"icon":49},"/document/js-base/examine","document/04.js-base/03.examine/01.index",[206],{"title":48,"path":203,"stem":204},{"title":208,"path":209,"stem":210,"children":211,"page":50},"Js Advanced","/document/js-advanced","document/05.js-advanced",[212,231,249],{"title":213,"path":214,"stem":215,"children":216,"icon":41},"JavaScript 原理","/document/js-advanced/guide","document/05.js-advanced/01.guide/01.index",[217,219,223,227],{"title":218,"path":214,"stem":215},"JavaScript 是怎么运行的？",{"title":220,"path":221,"stem":222},"深入理解函数和作用域","/document/js-advanced/guide/function","document/05.js-advanced/01.guide/02.function",{"title":224,"path":225,"stem":226},"深入理解 this 指向","/document/js-advanced/guide/this","document/05.js-advanced/01.guide/03.this",{"title":228,"path":229,"stem":230},"浅拷贝与深拷贝详解","/document/js-advanced/guide/copy","document/05.js-advanced/01.guide/04.copy",{"title":232,"icon":233,"path":234,"stem":235,"children":236,"page":50},"编程范式","i-lucide-shapes","/document/js-advanced/program","document/05.js-advanced/02.program",[237,241,245],{"title":238,"path":239,"stem":240},"面向对象编程（OOP）","/document/js-advanced/program/object","document/05.js-advanced/02.program/01.object",{"title":242,"path":243,"stem":244},"函数式编程入门","/document/js-advanced/program/fp","document/05.js-advanced/02.program/02.fp",{"title":246,"path":247,"stem":248},"防抖和节流详解","/document/js-advanced/program/debounce","document/05.js-advanced/02.program/03.debounce",{"title":250,"icon":251,"path":252,"stem":253,"children":254,"page":50},"浏览器相关特性","i-lucide-monitor","/document/js-advanced/browser","document/05.js-advanced/03.browser",[255,259],{"title":256,"path":257,"stem":258},"浏览器缓存入门指南","/document/js-advanced/browser/cache","document/05.js-advanced/03.browser/01.cache",{"title":260,"path":261,"stem":262},"Web 存储机制深度剖析","/document/js-advanced/browser/storage","document/05.js-advanced/03.browser/02.storage",{"title":264,"path":265,"stem":266,"children":267,"page":50},"Es6","/document/es6","document/06.es6",[268,302],{"title":213,"path":269,"stem":270,"children":271,"icon":41},"/document/es6/guide","document/06.es6/01.guide/01.index",[272,274,278,282,286,290,294,298],{"title":273,"path":269,"stem":270},"ES6 入门指南",{"title":275,"path":276,"stem":277},"变量声明：let 与 const","/document/es6/guide/const","document/06.es6/01.guide/02.const",{"title":279,"path":280,"stem":281},"箭头函数的用法与特点","/document/es6/guide/arrow","document/06.es6/01.guide/03.arrow",{"title":283,"path":284,"stem":285},"字符串、对象与数组的新特性","/document/es6/guide/enhance","document/06.es6/01.guide/04.enhance",{"title":287,"path":288,"stem":289},"Map 和 Set 的使用方式","/document/es6/guide/set","document/06.es6/01.guide/05.set",{"title":291,"path":292,"stem":293},"Promise 实现异步流程控制","/document/es6/guide/promise","document/06.es6/01.guide/06.promise",{"title":295,"path":296,"stem":297},"ESM 模块化语法解析","/document/es6/guide/esm","document/06.es6/01.guide/07.esm",{"title":299,"path":300,"stem":301},"Class 的定义与继承机制","/document/es6/guide/class","document/06.es6/01.guide/08.class",{"title":43,"path":303,"stem":304,"children":305,"icon":49},"/document/es6/examine","document/06.es6/02.examine/01.index",[306],{"title":48,"path":303,"stem":304},{"title":308,"path":309,"stem":310,"children":311,"page":50},"Js Algorithms","/document/js-algorithms","document/07.js-algorithms",[312,338],{"title":15,"path":313,"stem":314,"children":315,"icon":41},"/document/js-algorithms/guide","document/07.js-algorithms/01.guide/01.index",[316,318,322,326,330,334],{"title":317,"path":313,"stem":314},"什么是数据结构和算法？",{"title":319,"path":320,"stem":321},"时间和空间复杂度","/document/js-algorithms/guide/complexity","document/07.js-algorithms/01.guide/02.complexity",{"title":323,"path":324,"stem":325},"数据结构","/document/js-algorithms/guide/structure","document/07.js-algorithms/01.guide/03.structure",{"title":327,"path":328,"stem":329},"算法","/document/js-algorithms/guide/algorithms","document/07.js-algorithms/01.guide/04.algorithms",{"title":331,"path":332,"stem":333},"算法思想","/document/js-algorithms/guide/heuristic","document/07.js-algorithms/01.guide/05.heuristic",{"title":335,"path":336,"stem":337},"深度优先与广度优先搜索","/document/js-algorithms/guide/search","document/07.js-algorithms/01.guide/06.search",{"title":43,"path":339,"stem":340,"children":341,"icon":49},"/document/js-algorithms/examine","document/07.js-algorithms/02.examine/01.index",[342],{"title":48,"path":339,"stem":340},{"title":344,"path":345,"stem":346,"children":347,"page":50},"Automation","/document/automation","document/08.automation",[348,358],{"title":15,"path":349,"stem":350,"children":351,"icon":41},"/document/automation/guide","document/08.automation/01.guide/01.index",[352,354],{"title":353,"path":349,"stem":350},"什么是前端工程化？",{"title":355,"path":356,"stem":357},"开始搭建工程化项目","/document/automation/guide/start","document/08.automation/01.guide/02.start",{"title":43,"path":359,"stem":360,"children":361,"icon":49},"/document/automation/examine","document/08.automation/02.examine/01.index",[362],{"title":48,"path":359,"stem":360},{"title":364,"path":365,"stem":366,"children":367,"page":50},"Webpack","/document/webpack","document/09.webpack",[368,398],{"title":15,"path":369,"stem":370,"children":371,"icon":41},"/document/webpack/guide","document/09.webpack/01.guide/01.index",[372,374,378,382,386,390,394],{"title":373,"path":369,"stem":370},"Webpack 初识",{"title":375,"path":376,"stem":377},"搭建 Webpack 项目","/document/webpack/guide/start","document/09.webpack/01.guide/02.start",{"title":379,"path":380,"stem":381},"Loader 加载器","/document/webpack/guide/loader","document/09.webpack/01.guide/03.loader",{"title":383,"path":384,"stem":385},"Plugin 插件","/document/webpack/guide/plugin","document/09.webpack/01.guide/04.plugin",{"title":387,"path":388,"stem":389},"HMR 热更新与开发模式","/document/webpack/guide/dev","document/09.webpack/01.guide/05.dev",{"title":391,"path":392,"stem":393},"性能优化配置","/document/webpack/guide/optimize","document/09.webpack/01.guide/06.optimize",{"title":395,"path":396,"stem":397},"webpack 生产环境构建全攻略","/document/webpack/guide/production","document/09.webpack/01.guide/07.production",{"title":43,"path":399,"stem":400,"children":401,"icon":49},"/document/webpack/examine","document/09.webpack/02.examine/01.index",[402],{"title":48,"path":399,"stem":400},{"title":404,"path":405,"stem":406,"children":407,"page":50},"Scss","/document/scss","document/10.scss",[408,442],{"title":15,"path":409,"stem":410,"children":411,"icon":41},"/document/scss/guide","document/10.scss/01.guide/01.index",[412,414,418,422,426,430,434,438],{"title":413,"path":409,"stem":410},"什么是 SCSS？",{"title":415,"path":416,"stem":417},"SCSS 入门语法基础","/document/scss/guide/syntax","document/10.scss/01.guide/02.syntax",{"title":419,"path":420,"stem":421},"开始编写 Scss 项目","/document/scss/guide/start","document/10.scss/01.guide/03.start",{"title":423,"path":424,"stem":425},"Scss 模块导入方式","/document/scss/guide/import","document/10.scss/01.guide/04.import",{"title":427,"path":428,"stem":429},"Mixin 与函数详解","/document/scss/guide/mixin","document/10.scss/01.guide/05.mixin",{"title":431,"path":432,"stem":433},"Scss 继承、占位符技巧","/document/scss/guide/extend","document/10.scss/01.guide/06.extend",{"title":435,"path":436,"stem":437},"SCSS 流程控制与逻辑语法","/document/scss/guide/flow","document/10.scss/01.guide/07.flow",{"title":439,"path":440,"stem":441},"SCSS 内置函数","/document/scss/guide/function","document/10.scss/01.guide/08.function",{"title":43,"path":443,"stem":444,"children":445,"icon":49},"/document/scss/examine","document/10.scss/02.examine/01.index",[446],{"title":48,"path":443,"stem":444},{"title":448,"path":449,"stem":450,"children":451,"page":50},"Eslint","/document/eslint","document/11.eslint",[452,474],{"title":15,"path":453,"stem":454,"children":455,"icon":41},"/document/eslint/guide","document/11.eslint/01.guide/01.index",[456,458,462,466,470],{"title":457,"path":453,"stem":454},"ESLint 是什么？",{"title":459,"path":460,"stem":461},"ESLint 安装与运行详解","/document/eslint/guide/install","document/11.eslint/01.guide/02.install",{"title":463,"path":464,"stem":465},"ESLint  规则介绍","/document/eslint/guide/rule","document/11.eslint/01.guide/03.rule",{"title":467,"path":468,"stem":469},"集成 ESLint 到 Webpack","/document/eslint/guide/webpack","document/11.eslint/01.guide/04.webpack",{"title":471,"path":472,"stem":473},"Plugins 和 Extends 使用","/document/eslint/guide/plugins","document/11.eslint/01.guide/05.plugins",{"title":43,"path":475,"stem":476,"children":477,"icon":49},"/document/eslint/examine","document/11.eslint/02.examine/01.index",[478],{"title":48,"path":475,"stem":476},{"title":480,"path":481,"stem":482,"children":483,"page":50},"Axios","/document/axios","document/12.axios",[484,494,513],{"title":15,"path":485,"stem":486,"children":487,"icon":41},"/document/axios/guide","document/12.axios/01.guide/01.index",[488,490],{"title":489,"path":485,"stem":486},"HTTP 协议与网络请求",{"title":491,"path":492,"stem":493},"使用 JavaScript 发起请求","/document/axios/guide/get","document/12.axios/01.guide/02.get",{"title":495,"path":496,"stem":497,"children":498,"icon":41},"axios 插件","/document/axios/axios","document/12.axios/02.axios/01.index",[499,501,505,509],{"title":500,"path":496,"stem":497},"Axios 入门",{"title":502,"path":503,"stem":504},"Axios 请求基础全面讲解","/document/axios/axios/start","document/12.axios/02.axios/02.start",{"title":506,"path":507,"stem":508},"Axios 高级使用技巧","/document/axios/axios/advenced","document/12.axios/02.axios/03.advenced",{"title":510,"path":511,"stem":512},"CORS 跨域解决方案","/document/axios/axios/cors","document/12.axios/02.axios/04.cors",{"title":43,"path":514,"stem":515,"children":516,"icon":49},"/document/axios/examine","document/12.axios/03.examine/01.index",[517],{"title":48,"path":514,"stem":515},{"title":519,"path":520,"stem":521,"children":522,"page":50},"Typescript","/document/typescript","document/13.typescript",[523,553],{"title":15,"path":524,"stem":525,"children":526,"icon":41},"/document/typescript/guide","document/13.typescript/01.guide/01.index",[527,529,533,537,541,545,549],{"title":528,"path":524,"stem":525},"TypeScript 简介与入门",{"title":530,"path":531,"stem":532},"类型系统基础","/document/typescript/guide/base","document/13.typescript/01.guide/02.base",{"title":534,"path":535,"stem":536},"类型组合与类型保护","/document/typescript/guide/compose","document/13.typescript/01.guide/03.compose",{"title":538,"path":539,"stem":540},"类与面向对象编程","/document/typescript/guide/class","document/13.typescript/01.guide/04.class",{"title":542,"path":543,"stem":544},"泛型与类型复用","/document/typescript/guide/generic","document/13.typescript/01.guide/05.generic",{"title":546,"path":547,"stem":548},"项目进阶与配置实战","/document/typescript/guide/config","document/13.typescript/01.guide/06.config",{"title":550,"path":551,"stem":552},"第三方库类型支持与声明","/document/typescript/guide/declare","document/13.typescript/01.guide/07.declare",{"title":43,"path":554,"stem":555,"children":556,"icon":49},"/document/typescript/examine","document/13.typescript/02.examine/01.index",[557],{"title":48,"path":554,"stem":555},{"title":559,"path":560,"stem":561,"children":562,"page":50},"Vue2","/document/vue2","document/14.vue2",[563],{"title":15,"path":564,"stem":565,"children":566,"icon":41},"/document/vue2/guide","document/14.vue2/01.guide/01.index",[567,569,573,577,581],{"title":568,"path":564,"stem":565},"Vue 2 入门与安装",{"title":570,"path":571,"stem":572},"模板语法与指令详解","/document/vue2/guide/directive","document/14.vue2/01.guide/02.directive",{"title":574,"path":575,"stem":576},"组件化开发基础","/document/vue2/guide/component","document/14.vue2/01.guide/03.component",{"title":578,"path":579,"stem":580},"计算属性与监听器","/document/vue2/guide/reactive","document/14.vue2/01.guide/04.reactive",{"title":582,"path":583,"stem":584},"生命周期钩子解析","/document/vue2/guide/hooks","document/14.vue2/01.guide/05.hooks",{"title":586,"path":587,"stem":588,"children":589,"page":50},"Router","/document/router","document/15.router",[590],{"title":591,"path":592,"stem":593,"children":594,"icon":41},"Vue Router 路由","/document/router/guide","document/15.router/01.guide/01.index",[595,597,601,605],{"title":596,"path":592,"stem":593},"Vue Router 入门",{"title":598,"path":599,"stem":600},"路由核心功能详解","/document/router/guide/routing","document/15.router/01.guide/02.routing",{"title":602,"path":603,"stem":604},"路由守卫钩子和元信息","/document/router/guide/hook","document/15.router/01.guide/03.hook",{"title":606,"path":607,"stem":608},"路由优化与懒加载","/document/router/guide/optimize","document/15.router/01.guide/04.optimize",{"title":610,"path":611,"stem":612,"children":613,"page":50},"Vuex","/document/vuex","document/16.vuex",[614],{"title":615,"path":616,"stem":617,"children":618,"icon":41},"Vuex 状态管理器","/document/vuex/guide","document/16.vuex/01.guide/01.index",[619,621,625,629],{"title":620,"path":616,"stem":617},"为什么要使用 Vuex？",{"title":622,"path":623,"stem":624},"快速上手 Vuex","/document/vuex/guide/start","document/16.vuex/01.guide/02.start",{"title":626,"path":627,"stem":628},"深入理解 Vuex 核心功能","/document/vuex/guide/core","document/16.vuex/01.guide/03.core",{"title":630,"path":631,"stem":632},"模块化与进阶用法","/document/vuex/guide/module","document/16.vuex/01.guide/04.module",{"title":634,"path":635,"stem":636,"children":637,"page":50},"Element Ui","/document/element-ui","document/17.element-ui",[638],{"title":639,"path":640,"stem":641,"children":642,"icon":41},"Element UI 组件库","/document/element-ui/guide","document/17.element-ui/01.guide/01.index",[643,645,649,653,657,661],{"title":644,"path":640,"stem":641},"Element UI 初体验",{"title":646,"path":647,"stem":648},"常用组件快速上手","/document/element-ui/guide/quickstart","document/17.element-ui/01.guide/02.quickstart",{"title":650,"path":651,"stem":652},"布局与结构类组件","/document/element-ui/guide/layout","document/17.element-ui/01.guide/03.layout",{"title":654,"path":655,"stem":656},"自定义组件样式","/document/element-ui/guide/style","document/17.element-ui/01.guide/04.style",{"title":658,"path":659,"stem":660},"组件封装与复用","/document/element-ui/guide/component","document/17.element-ui/01.guide/05.component",{"title":662,"path":663,"stem":664},"自定义主题色与深色模式","/document/element-ui/guide/theme","document/17.element-ui/01.guide/06.theme",{"title":666,"path":667,"stem":668,"children":669,"page":50},"Vue3","/document/vue3","document/18.vue3",[670],{"title":666,"path":671,"stem":672,"children":673,"icon":41},"/document/vue3/guide","document/18.vue3/01.guide/01.index",[674,676,680,684,688,692,696],{"title":675,"path":671,"stem":672},"Vue 3 概览与生态升级",{"title":677,"path":678,"stem":679},"组合式 API 入门指南","/document/vue3/guide/composition","document/18.vue3/01.guide/02.composition",{"title":681,"path":682,"stem":683},"组合式 API 逻辑抽离","/document/vue3/guide/composable","document/18.vue3/01.guide/03.composable",{"title":685,"path":686,"stem":687},"模板语法及新特性","/document/vue3/guide/features","document/18.vue3/01.guide/04.features",{"title":689,"path":690,"stem":691},"TypeScript 开发支持","/document/vue3/guide/typescript","document/18.vue3/01.guide/05.typescript",{"title":693,"path":694,"stem":695},"响应式系统原理与进阶 API","/document/vue3/guide/reactive","document/18.vue3/01.guide/06.reactive",{"title":697,"path":698,"stem":699},"Vue Router 4 路由实战","/document/vue3/guide/vue-router","document/18.vue3/01.guide/07.vue-router",{"title":701,"path":702,"stem":703,"children":704,"page":50},"Pinia","/document/pinia","document/19.pinia",[705],{"title":701,"path":706,"stem":707,"children":708,"icon":41},"/document/pinia/guide","document/19.pinia/01.guide/01.index",[709,711,715,719,723,727],{"title":710,"path":706,"stem":707},"Pinia 简介与安装",{"title":712,"path":713,"stem":714},"Store 三大核心","/document/pinia/guide/store","document/19.pinia/01.guide/02.store",{"title":716,"path":717,"stem":718},"在组件中使用 Store","/document/pinia/guide/usage","document/19.pinia/01.guide/03.usage",{"title":720,"path":721,"stem":722},"State 修改与响应式细节","/document/pinia/guide/state","document/19.pinia/01.guide/04.state",{"title":724,"path":725,"stem":726},"Action 与异步操作","/document/pinia/guide/action","document/19.pinia/01.guide/05.action",{"title":728,"path":729,"stem":730},"组合、TypeScript 与插件","/document/pinia/guide/advanced","document/19.pinia/01.guide/06.advanced",{"title":732,"path":733,"stem":734,"children":735,"page":50},"Vite","/document/vite","document/20.vite",[736],{"title":732,"path":737,"stem":738,"children":739,"icon":41},"/document/vite/guide","document/20.vite/01.guide/01.index",[740,742,746,750,754,758],{"title":741,"path":737,"stem":738},"Vite 简介与安装",{"title":743,"path":744,"stem":745},"基础配置","/document/vite/guide/config","document/20.vite/01.guide/02.config",{"title":747,"path":748,"stem":749},"常用插件","/document/vite/guide/plugins","document/20.vite/01.guide/03.plugins",{"title":751,"path":752,"stem":753},"环境变量与模式","/document/vite/guide/env","document/20.vite/01.guide/04.env",{"title":755,"path":756,"stem":757},"依赖预构建","/document/vite/guide/optimize-deps","document/20.vite/01.guide/05.optimize-deps",{"title":759,"path":760,"stem":761},"构建与部署","/document/vite/guide/build-deploy","document/20.vite/01.guide/06.build-deploy",{"title":763,"path":764,"stem":765,"children":766,"page":50},"Nuxt","/document/nuxt","document/21.nuxt",[767],{"title":768,"path":769,"stem":770,"children":771,"icon":41},"Nuxt.js","/document/nuxt/guide","document/21.nuxt/01.guide/01.index",[772,774,778,782,786,790],{"title":773,"path":769,"stem":770},"Nuxt.js 简介与安装",{"title":775,"path":776,"stem":777},"目录约定与自动导入","/document/nuxt/guide/directory-and-auto-imports","document/21.nuxt/01.guide/02.directory-and-auto-imports",{"title":779,"path":780,"stem":781},"文件路由与导航","/document/nuxt/guide/routing","document/21.nuxt/01.guide/03.routing",{"title":783,"path":784,"stem":785},"数据获取","/document/nuxt/guide/data-fetching","document/21.nuxt/01.guide/04.data-fetching",{"title":787,"path":788,"stem":789},"状态管理","/document/nuxt/guide/state-management","document/21.nuxt/01.guide/05.state-management",{"title":791,"path":792,"stem":793},"配置与部署","/document/nuxt/guide/config-and-deploy","document/21.nuxt/01.guide/06.config-and-deploy",{"title":795,"path":796,"stem":797,"children":798,"page":50},"Npm","/document/npm","document/22.npm",[799],{"title":800,"path":801,"stem":802,"children":803,"icon":830},"NPM","/document/npm/guide","document/22.npm/01.guide/01.index",[804,806,810,814,818,822,826],{"title":805,"path":801,"stem":802},"NPM 入门",{"title":807,"path":808,"stem":809},"package.json 详解","/document/npm/guide/package-json","document/22.npm/01.guide/02.package-json",{"title":811,"path":812,"stem":813},"安装命令与版本","/document/npm/guide/install-commands","document/22.npm/01.guide/03.install-commands",{"title":815,"path":816,"stem":817},"scripts 与 npx","/document/npm/guide/scripts-and-npx","document/22.npm/01.guide/04.scripts-and-npx",{"title":819,"path":820,"stem":821},"发布包与镜像源","/document/npm/guide/publish-and-registry","document/22.npm/01.guide/05.publish-and-registry",{"title":823,"path":824,"stem":825},"lock 文件与清理","/document/npm/guide/lock-and-clean","document/22.npm/01.guide/06.lock-and-clean",{"title":827,"path":828,"stem":829},"Yarn 与 pnpm","/document/npm/guide/yarn-and-pnpm","document/22.npm/01.guide/07.yarn-and-pnpm","i-simple-icons-npm",{"title":832,"icon":833,"path":834,"stem":835,"children":836,"page":50},"Handlebars","i-simple-icons-handlebarsdotjs","/document/handlebars","document/23.handlebars",[837],{"title":838,"path":839,"stem":840,"children":841},"Handlebars 简介","/document/handlebars/guide","document/23.handlebars/01.guide/01.index",[842,843,847,851,855,859],{"title":838,"path":839,"stem":840},{"title":844,"path":845,"stem":846},"基本语法","/document/handlebars/guide/syntax","document/23.handlebars/01.guide/02.syntax",{"title":848,"path":849,"stem":850},"内置辅助函数","/document/handlebars/guide/builtins","document/23.handlebars/01.guide/03.builtins",{"title":852,"path":853,"stem":854},"模板复用","/document/handlebars/guide/partials","document/23.handlebars/01.guide/04.partials",{"title":856,"path":857,"stem":858},"自定义 Helpers","/document/handlebars/guide/helpers","document/23.handlebars/01.guide/05.helpers",{"title":860,"path":861,"stem":862},"预编译与运行时","/document/handlebars/guide/runtime","document/23.handlebars/01.guide/06.runtime",{"title":864,"icon":865,"path":866,"stem":867,"children":868,"page":50},"Plop","i-simple-icons-nodedotjs","/document/plop","document/24.plop",[869],{"title":870,"path":871,"stem":872,"children":873},"Plop 简介","/document/plop/guide","document/24.plop/01.guide/01.index",[874,875,879,883,887,891,895],{"title":870,"path":871,"stem":872},{"title":876,"path":877,"stem":878},"第一个生成器","/document/plop/guide/plopfile","document/24.plop/01.guide/02.plopfile",{"title":880,"path":881,"stem":882},"交互式询问","/document/plop/guide/prompts","document/24.plop/01.guide/03.prompts",{"title":884,"path":885,"stem":886},"核心动作","/document/plop/guide/actions","document/24.plop/01.guide/04.actions",{"title":888,"path":889,"stem":890},"模板文件组织","/document/plop/guide/templates","document/24.plop/01.guide/05.templates",{"title":892,"path":893,"stem":894},"Helper 扩展","/document/plop/guide/helpers","document/24.plop/01.guide/06.helpers",{"title":896,"path":897,"stem":898},"组件生成实战","/document/plop/guide/practice","document/24.plop/01.guide/07.practice",{"title":900,"icon":901,"path":902,"stem":903,"children":904,"page":50},"Rollup","i-simple-icons-rollupdotjs","/document/rollup","document/25.rollup",[905],{"title":906,"path":907,"stem":908,"children":909},"Rollup 简介","/document/rollup/guide","document/25.rollup/01.guide/01.index",[910,911,914,918,921,925],{"title":906,"path":907,"stem":908},{"title":743,"path":912,"stem":913},"/document/rollup/guide/config","document/25.rollup/01.guide/02.config",{"title":915,"path":916,"stem":917},"输出格式","/document/rollup/guide/formats","document/25.rollup/01.guide/03.formats",{"title":747,"path":919,"stem":920},"/document/rollup/guide/plugins","document/25.rollup/01.guide/04.plugins",{"title":922,"path":923,"stem":924},"Tree Shaking","/document/rollup/guide/tree-shaking","document/25.rollup/01.guide/05.tree-shaking",{"title":926,"path":927,"stem":928},"打包工具库实战","/document/rollup/guide/library","document/25.rollup/01.guide/06.library",{"title":930,"icon":865,"path":931,"stem":932,"children":933,"page":50},"Snabbdom","/document/snabbdom","document/26.snabbdom",[934],{"title":935,"path":936,"stem":937,"children":938},"Snabbdom 简介","/document/snabbdom/guide","document/26.snabbdom/01.guide/01.index",[939,940,944,948,952,956,960],{"title":935,"path":936,"stem":937},{"title":941,"path":942,"stem":943},"h 函数","/document/snabbdom/guide/h","document/26.snabbdom/01.guide/02.h",{"title":945,"path":946,"stem":947},"模块机制","/document/snabbdom/guide/modules","document/26.snabbdom/01.guide/03.modules",{"title":949,"path":950,"stem":951},"patch 渲染与更新","/document/snabbdom/guide/patch","document/26.snabbdom/01.guide/04.patch",{"title":953,"path":954,"stem":955},"key 的作用","/document/snabbdom/guide/key","document/26.snabbdom/01.guide/05.key",{"title":957,"path":958,"stem":959},"Diff 原理","/document/snabbdom/guide/diff","document/26.snabbdom/01.guide/06.diff",{"title":961,"path":962,"stem":963},"手写迷你虚拟 DOM","/document/snabbdom/guide/practice","document/26.snabbdom/01.guide/07.practice",{"title":965,"icon":966,"path":967,"stem":968,"children":969,"page":50},"Vercel","i-simple-icons-vercel","/document/vercel","document/27.vercel",[970],{"title":971,"path":972,"stem":973,"children":974},"Vercel 简介","/document/vercel/guide","document/27.vercel/01.guide/01.index",[975,976,980,984,988,992,996],{"title":971,"path":972,"stem":973},{"title":977,"path":978,"stem":979},"Vercel CLI","/document/vercel/guide/cli","document/27.vercel/01.guide/02.cli",{"title":981,"path":982,"stem":983},"项目设置与环境变量","/document/vercel/guide/settings","document/27.vercel/01.guide/03.settings",{"title":985,"path":986,"stem":987},"预览部署与回滚","/document/vercel/guide/preview","document/27.vercel/01.guide/04.preview",{"title":989,"path":990,"stem":991},"自定义域名","/document/vercel/guide/domain","document/27.vercel/01.guide/05.domain",{"title":993,"path":994,"stem":995},"vercel.json 配置","/document/vercel/guide/vercel-json","document/27.vercel/01.guide/06.vercel-json",{"title":997,"path":998,"stem":999},"Serverless Functions","/document/vercel/guide/serverless","document/27.vercel/01.guide/07.serverless",{"title":1001,"icon":1002,"path":1003,"stem":1004,"children":1005,"page":50},"ECharts","i-simple-icons-apacheecharts","/document/echarts","document/28.echarts",[1006],{"title":1007,"path":1008,"stem":1009,"children":1010},"ECharts 简介","/document/echarts/guide","document/28.echarts/01.guide/01.index",[1011,1012,1016,1020,1024,1028,1032],{"title":1007,"path":1008,"stem":1009},{"title":1013,"path":1014,"stem":1015},"核心配置项","/document/echarts/guide/option","document/28.echarts/01.guide/02.option",{"title":1017,"path":1018,"stem":1019},"常用图表类型","/document/echarts/guide/charts","document/28.echarts/01.guide/03.charts",{"title":1021,"path":1022,"stem":1023},"样式与主题","/document/echarts/guide/style","document/28.echarts/01.guide/04.style",{"title":1025,"path":1026,"stem":1027},"交互与事件","/document/echarts/guide/interaction","document/28.echarts/01.guide/05.interaction",{"title":1029,"path":1030,"stem":1031},"动态数据","/document/echarts/guide/data","document/28.echarts/01.guide/06.data",{"title":1033,"path":1034,"stem":1035},"Vue3 实战","/document/echarts/guide/vue","document/28.echarts/01.guide/07.vue",{"title":1037,"icon":1038,"path":1039,"stem":1040,"children":1041,"page":50},"D3","i-simple-icons-d3dotjs","/document/d3","document/29.d3",[1042],{"title":1043,"path":1044,"stem":1045,"children":1046},"D3 简介","/document/d3/guide","document/29.d3/01.guide/01.index",[1047,1048,1052,1056,1060,1064,1068,1072],{"title":1043,"path":1044,"stem":1045},{"title":1049,"path":1050,"stem":1051},"选择集与数据绑定","/document/d3/guide/selection","document/29.d3/01.guide/02.selection",{"title":1053,"path":1054,"stem":1055},"比例尺","/document/d3/guide/scale","document/29.d3/01.guide/03.scale",{"title":1057,"path":1058,"stem":1059},"坐标轴","/document/d3/guide/axis","document/29.d3/01.guide/04.axis",{"title":1061,"path":1062,"stem":1063},"图形生成器","/document/d3/guide/shape","document/29.d3/01.guide/05.shape",{"title":1065,"path":1066,"stem":1067},"过渡动画","/document/d3/guide/transition","document/29.d3/01.guide/06.transition",{"title":1069,"path":1070,"stem":1071},"交互与缩放","/document/d3/guide/interaction","document/29.d3/01.guide/07.interaction",{"title":1033,"path":1073,"stem":1074},"/document/d3/guide/vue","document/29.d3/01.guide/08.vue",{"title":1076,"icon":1077,"path":1078,"stem":1079,"children":1080,"page":50},"Three.js","i-simple-icons-threedotjs","/document/threejs","document/30.threejs",[1081],{"title":1082,"path":1083,"stem":1084,"children":1085},"Three.js 简介","/document/threejs/guide","document/30.threejs/01.guide/01.index",[1086,1087,1091,1095,1099,1103,1107],{"title":1082,"path":1083,"stem":1084},{"title":1088,"path":1089,"stem":1090},"几何体与材质","/document/threejs/guide/geometry","document/30.threejs/01.guide/02.geometry",{"title":1092,"path":1093,"stem":1094},"灯光与阴影","/document/threejs/guide/light","document/30.threejs/01.guide/03.light",{"title":1096,"path":1097,"stem":1098},"相机与坐标系","/document/threejs/guide/camera","document/30.threejs/01.guide/04.camera",{"title":1100,"path":1101,"stem":1102},"动画与渲染循环","/document/threejs/guide/animation","document/30.threejs/01.guide/05.animation",{"title":1104,"path":1105,"stem":1106},"轨道控制器","/document/threejs/guide/control","document/30.threejs/01.guide/06.control",{"title":1033,"path":1108,"stem":1109},"/document/threejs/guide/vue","document/30.threejs/01.guide/07.vue",{"title":1111,"icon":865,"path":1112,"stem":1113,"children":1114,"page":50},"Node.js","/document/nodejs","document/32.nodejs",[1115],{"title":1116,"path":1117,"stem":1118,"children":1119},"Node.js 简介","/document/nodejs/guide","document/32.nodejs/01.guide/01.index",[1120,1121,1125,1129,1133,1137,1141,1145],{"title":1116,"path":1117,"stem":1118},{"title":1122,"path":1123,"stem":1124},"模块化","/document/nodejs/guide/module","document/32.nodejs/01.guide/02.module",{"title":1126,"path":1127,"stem":1128},"fs 文件系统","/document/nodejs/guide/fs","document/32.nodejs/01.guide/03.fs",{"title":1130,"path":1131,"stem":1132},"path 路径模块","/document/nodejs/guide/path","document/32.nodejs/01.guide/04.path",{"title":1134,"path":1135,"stem":1136},"http 搭建服务器","/document/nodejs/guide/http","document/32.nodejs/01.guide/05.http",{"title":1138,"path":1139,"stem":1140},"事件循环","/document/nodejs/guide/event-loop","document/32.nodejs/01.guide/06.event-loop",{"title":1142,"path":1143,"stem":1144},"process 与环境变量","/document/nodejs/guide/process","document/32.nodejs/01.guide/07.process",{"title":1146,"path":1147,"stem":1148},"events 事件模块","/document/nodejs/guide/events","document/32.nodejs/01.guide/08.events",{"title":1150,"icon":1151,"path":1152,"stem":1153,"children":1154,"page":50},"Express","i-simple-icons-express","/document/express","document/33.express",[1155],{"title":1156,"path":1157,"stem":1158,"children":1159},"Express 简介","/document/express/guide","document/33.express/01.guide/01.index",[1160,1161,1165,1169,1173,1177],{"title":1156,"path":1157,"stem":1158},{"title":1162,"path":1163,"stem":1164},"路由","/document/express/guide/routing","document/33.express/01.guide/02.routing",{"title":1166,"path":1167,"stem":1168},"中间件","/document/express/guide/middleware","document/33.express/01.guide/03.middleware",{"title":1170,"path":1171,"stem":1172},"请求与响应","/document/express/guide/request-response","document/33.express/01.guide/04.request-response",{"title":1174,"path":1175,"stem":1176},"错误处理","/document/express/guide/error-handling","document/33.express/01.guide/05.error-handling",{"title":1178,"path":1179,"stem":1180},"RESTful 实战","/document/express/guide/restful-api","document/33.express/01.guide/06.restful-api",{"title":1182,"icon":1183,"path":1184,"stem":1185,"children":1186,"page":50},"Koa","i-simple-icons-koa","/document/koa","document/34.koa",[1187],{"title":1188,"path":1189,"stem":1190,"children":1191},"Koa 简介","/document/koa/guide","document/34.koa/01.guide/01.index",[1192,1193,1197,1201,1204,1208],{"title":1188,"path":1189,"stem":1190},{"title":1194,"path":1195,"stem":1196},"Context 上下文","/document/koa/guide/context","document/34.koa/01.guide/02.context",{"title":1198,"path":1199,"stem":1200},"中间件与洋葱模型","/document/koa/guide/middleware","document/34.koa/01.guide/03.middleware",{"title":1162,"path":1202,"stem":1203},"/document/koa/guide/routing","document/34.koa/01.guide/04.routing",{"title":1205,"path":1206,"stem":1207},"请求体与错误处理","/document/koa/guide/body-and-error","document/34.koa/01.guide/05.body-and-error",{"title":1209,"path":1210,"stem":1211},"RESTful 接口实战","/document/koa/guide/restful-api","document/34.koa/01.guide/06.restful-api",{"title":1213,"icon":1214,"path":1215,"stem":1216,"children":1217,"page":50},"Egg.js","i-lucide-egg","/document/egg","document/35.egg",[1218],{"title":1219,"path":1220,"stem":1221,"children":1222},"Egg.js 简介","/document/egg/guide","document/35.egg/01.guide/01.index",[1223,1224,1228,1232,1236,1240],{"title":1219,"path":1220,"stem":1221},{"title":1225,"path":1226,"stem":1227},"路由与 Controller","/document/egg/guide/router-controller","document/35.egg/01.guide/02.router-controller",{"title":1229,"path":1230,"stem":1231},"Service 业务逻辑","/document/egg/guide/service","document/35.egg/01.guide/03.service",{"title":1233,"path":1234,"stem":1235},"配置与中间件","/document/egg/guide/config-middleware","document/35.egg/01.guide/04.config-middleware",{"title":1237,"path":1238,"stem":1239},"插件与扩展","/document/egg/guide/plugin-extend","document/35.egg/01.guide/05.plugin-extend",{"title":1209,"path":1241,"stem":1242},"/document/egg/guide/restful-api","document/35.egg/01.guide/06.restful-api",{"title":1244,"icon":1245,"path":1246,"stem":1247,"children":1248,"page":50},"Docker","i-simple-icons-docker","/document/docker","document/36.docker",[1249],{"title":1250,"path":1251,"stem":1252,"children":1253},"Docker 简介","/document/docker/guide","document/36.docker/01.guide/01.index",[1254,1255,1259,1263,1267],{"title":1250,"path":1251,"stem":1252},{"title":1256,"path":1257,"stem":1258},"镜像与容器","/document/docker/guide/image-container","document/36.docker/01.guide/02.image-container",{"title":1260,"path":1261,"stem":1262},"数据卷","/document/docker/guide/volume","document/36.docker/01.guide/03.volume",{"title":1264,"path":1265,"stem":1266},"Dockerfile","/document/docker/guide/dockerfile","document/36.docker/01.guide/04.dockerfile",{"title":1268,"path":1269,"stem":1270},"Docker Compose","/document/docker/guide/docker-compose","document/36.docker/01.guide/05.docker-compose",{"title":1272,"icon":1273,"path":1274,"stem":1275,"children":1276,"page":50},"MySQL","i-simple-icons-mysql","/document/mysql","document/37.mysql",[1277],{"title":1278,"path":1279,"stem":1280,"children":1281},"MySQL 简介","/document/mysql/guide","document/37.mysql/01.guide/01.index",[1282,1283,1287,1291,1295,1299,1303],{"title":1278,"path":1279,"stem":1280},{"title":1284,"path":1285,"stem":1286},"增删改查","/document/mysql/guide/crud","document/37.mysql/01.guide/02.crud",{"title":1288,"path":1289,"stem":1290},"条件查询与分页","/document/mysql/guide/query","document/37.mysql/01.guide/03.query",{"title":1292,"path":1293,"stem":1294},"数据类型与约束","/document/mysql/guide/data-type","document/37.mysql/01.guide/04.data-type",{"title":1296,"path":1297,"stem":1298},"多表关联查询","/document/mysql/guide/join","document/37.mysql/01.guide/05.join",{"title":1300,"path":1301,"stem":1302},"Node.js 操作 MySQL","/document/mysql/guide/nodejs","document/37.mysql/01.guide/06.nodejs",{"title":1304,"path":1305,"stem":1306},"索引与优化","/document/mysql/guide/optimize","document/37.mysql/01.guide/07.optimize",{"title":1308,"icon":1309,"path":1310,"stem":1311,"children":1312,"page":50},"MongoDB","i-simple-icons-mongodb","/document/mongodb","document/38.mongodb",[1313],{"title":1314,"path":1315,"stem":1316,"children":1317},"MongoDB 简介","/document/mongodb/guide","document/38.mongodb/01.guide/01.index",[1318,1319,1322,1326,1330,1334,1338,1342],{"title":1314,"path":1315,"stem":1316},{"title":1284,"path":1320,"stem":1321},"/document/mongodb/guide/crud","document/38.mongodb/01.guide/02.crud",{"title":1323,"path":1324,"stem":1325},"条件查询","/document/mongodb/guide/query","document/38.mongodb/01.guide/03.query",{"title":1327,"path":1328,"stem":1329},"文档与数据类型","/document/mongodb/guide/document","document/38.mongodb/01.guide/04.document",{"title":1331,"path":1332,"stem":1333},"Node.js 操作 MongoDB","/document/mongodb/guide/nodejs","document/38.mongodb/01.guide/05.nodejs",{"title":1335,"path":1336,"stem":1337},"Mongoose","/document/mongodb/guide/mongoose","document/38.mongodb/01.guide/06.mongoose",{"title":1339,"path":1340,"stem":1341},"索引","/document/mongodb/guide/optimize","document/38.mongodb/01.guide/07.optimize",{"title":1343,"path":1344,"stem":1345},"聚合管道","/document/mongodb/guide/aggregate","document/38.mongodb/01.guide/08.aggregate",{"title":1347,"icon":1348,"path":1349,"stem":1350,"children":1351,"page":50},"GraphQL","i-simple-icons-graphql","/document/graphql","document/39.graphql",[1352],{"title":1353,"path":1354,"stem":1355,"children":1356},"GraphQL 简介","/document/graphql/guide","document/39.graphql/01.guide/01.index",[1357,1358,1362,1366,1370,1374],{"title":1353,"path":1354,"stem":1355},{"title":1359,"path":1360,"stem":1361},"类型系统","/document/graphql/guide/schema","document/39.graphql/01.guide/02.schema",{"title":1363,"path":1364,"stem":1365},"查询进阶","/document/graphql/guide/query","document/39.graphql/01.guide/03.query",{"title":1367,"path":1368,"stem":1369},"Mutation 增删改","/document/graphql/guide/mutation","document/39.graphql/01.guide/04.mutation",{"title":1371,"path":1372,"stem":1373},"Express 集成","/document/graphql/guide/express","document/39.graphql/01.guide/05.express",{"title":1375,"path":1376,"stem":1377},"前端调用","/document/graphql/guide/client","document/39.graphql/01.guide/06.client",{"title":1379,"icon":1380,"path":1381,"stem":1382,"children":1383,"page":50},"Vue2 源码","i-simple-icons-vuedotjs","/document/source-vue2","document/40.source-vue2",[1384],{"title":1385,"path":1386,"stem":1387,"children":1388},"Vue2 源码简介","/document/source-vue2/guide","document/40.source-vue2/01.guide/01.index",[1389,1390,1394,1398,1402,1406,1410,1414],{"title":1385,"path":1386,"stem":1387},{"title":1391,"path":1392,"stem":1393},"初始化流程","/document/source-vue2/guide/init","document/40.source-vue2/01.guide/02.init",{"title":1395,"path":1396,"stem":1397},"响应式原理","/document/source-vue2/guide/reactive","document/40.source-vue2/01.guide/03.reactive",{"title":1399,"path":1400,"stem":1401},"Dep 与 Watcher","/document/source-vue2/guide/dep-watcher","document/40.source-vue2/01.guide/04.dep-watcher",{"title":1403,"path":1404,"stem":1405},"异步更新与 nextTick","/document/source-vue2/guide/nexttick","document/40.source-vue2/01.guide/05.nexttick",{"title":1407,"path":1408,"stem":1409},"虚拟 DOM 与 patch","/document/source-vue2/guide/vnode-patch","document/40.source-vue2/01.guide/06.vnode-patch",{"title":1411,"path":1412,"stem":1413},"模板编译","/document/source-vue2/guide/compile","document/40.source-vue2/01.guide/07.compile",{"title":1415,"path":1416,"stem":1417},"computed 与 watch 原理","/document/source-vue2/guide/computed-watch","document/40.source-vue2/01.guide/08.computed-watch",{"title":1419,"icon":1380,"path":1420,"stem":1421,"children":1422,"page":50},"Vue3 源码","/document/source-vue3","document/41.source-vue3",[1423],{"title":1424,"path":1425,"stem":1426,"children":1427},"Vue3 源码简介","/document/source-vue3/guide","document/41.source-vue3/01.guide/01.index",[1428,1429,1433,1437,1441,1445,1449,1452],{"title":1424,"path":1425,"stem":1426},{"title":1430,"path":1431,"stem":1432},"创建与挂载","/document/source-vue3/guide/create-app","document/41.source-vue3/01.guide/02.create-app",{"title":1434,"path":1435,"stem":1436},"Proxy 响应式","/document/source-vue3/guide/reactive","document/41.source-vue3/01.guide/03.reactive",{"title":1438,"path":1439,"stem":1440},"effect 与依赖收集","/document/source-vue3/guide/effect","document/41.source-vue3/01.guide/04.effect",{"title":1442,"path":1443,"stem":1444},"ref 与 computed","/document/source-vue3/guide/ref-computed","document/41.source-vue3/01.guide/05.ref-computed",{"title":1446,"path":1447,"stem":1448},"调度器与 nextTick","/document/source-vue3/guide/scheduler-nexttick","document/41.source-vue3/01.guide/06.scheduler-nexttick",{"title":1407,"path":1450,"stem":1451},"/document/source-vue3/guide/vnode-patch","document/41.source-vue3/01.guide/07.vnode-patch",{"title":1411,"path":1453,"stem":1454},"/document/source-vue3/guide/compile","document/41.source-vue3/01.guide/08.compile",{"title":1456,"icon":1457,"path":1458,"stem":1459,"children":1460,"page":50},"性能优化","i-lucide-zap","/document/performance","document/42.performance",[1461],{"title":1462,"path":1463,"stem":1464,"children":1465},"性能优化简介","/document/performance/guide","document/42.performance/01.guide/01.index",[1466,1467,1471,1475,1479,1483],{"title":1462,"path":1463,"stem":1464},{"title":1468,"path":1469,"stem":1470},"加载优化","/document/performance/guide/loading","document/42.performance/01.guide/02.loading",{"title":1472,"path":1473,"stem":1474},"渲染优化","/document/performance/guide/rendering","document/42.performance/01.guide/03.rendering",{"title":1476,"path":1477,"stem":1478},"缓存策略","/document/performance/guide/cache","document/42.performance/01.guide/04.cache",{"title":1480,"path":1481,"stem":1482},"构建产物优化","/document/performance/guide/build","document/42.performance/01.guide/05.build",{"title":1484,"path":1485,"stem":1486},"性能指标与工具","/document/performance/guide/metrics","document/42.performance/01.guide/06.metrics",{"title":1488,"icon":1489,"path":1490,"stem":1491,"children":1492,"page":50},"前端监控","i-lucide-activity","/document/monitor","document/43.monitor",[1493],{"title":1494,"path":1495,"stem":1496,"children":1497},"前端监控简介","/document/monitor/guide","document/43.monitor/01.guide/01.index",[1498,1499,1503,1507,1511,1515],{"title":1494,"path":1495,"stem":1496},{"title":1500,"path":1501,"stem":1502},"错误采集","/document/monitor/guide/error","document/43.monitor/01.guide/02.error",{"title":1504,"path":1505,"stem":1506},"埋点与上报","/document/monitor/guide/tracking","document/43.monitor/01.guide/03.tracking",{"title":1508,"path":1509,"stem":1510},"性能数据上报","/document/monitor/guide/performance-data","document/43.monitor/01.guide/04.performance-data",{"title":1512,"path":1513,"stem":1514},"Sentry 实践","/document/monitor/guide/sentry","document/43.monitor/01.guide/05.sentry",{"title":1516,"path":1517,"stem":1518},"日志与告警","/document/monitor/guide/logging","document/43.monitor/01.guide/06.logging",{"title":1520,"icon":1521,"path":1522,"stem":1523,"children":1524},"Electron：从入门到桌面应用交付","i-simple-icons-electron","/document/electron","document/44.electron/课程规划",[1525,1541,1559,1577,1595],{"title":1526,"path":1527,"stem":1528,"children":1529,"icon":1540},"基础架构","/document/electron/guide","document/44.electron/01.guide/01.index",[1530,1532,1536],{"title":1531,"path":1527,"stem":1528},"Electron 简介",{"title":1533,"path":1534,"stem":1535},"主进程、渲染进程与 preload","/document/electron/guide/process-model","document/44.electron/01.guide/02.process-model",{"title":1537,"path":1538,"stem":1539},"Electron 与 Vue 集成","/document/electron/guide/vue-integration","document/44.electron/01.guide/03.vue-integration","i-lucide-layers",{"title":1542,"icon":1543,"path":1544,"stem":1545,"children":1546,"page":50},"核心开发","i-lucide-code-2","/document/electron/core","document/44.electron/02.core",[1547,1551,1555],{"title":1548,"path":1549,"stem":1550},"创建窗口与应用生命周期","/document/electron/core/window-lifecycle","document/44.electron/02.core/04.window-lifecycle",{"title":1552,"path":1553,"stem":1554},"IPC 通信与接口设计","/document/electron/core/ipc-design","document/44.electron/02.core/05.ipc-design",{"title":1556,"path":1557,"stem":1558},"本地文件与系统交互","/document/electron/core/filesystem-system","document/44.electron/02.core/06.filesystem-system",{"title":1560,"icon":1561,"path":1562,"stem":1563,"children":1564,"page":50},"桌面能力与安全","i-lucide-monitor-cog","/document/electron/desktop","document/44.electron/03.desktop",[1565,1569,1573],{"title":1566,"path":1567,"stem":1568},"桌面端安全基础","/document/electron/desktop/security","document/44.electron/03.desktop/07.security",{"title":1570,"path":1571,"stem":1572},"菜单、托盘与多窗口","/document/electron/desktop/window-menu-tray","document/44.electron/03.desktop/08.window-menu-tray",{"title":1574,"path":1575,"stem":1576},"会话、网络与本地存储","/document/electron/desktop/session-storage","document/44.electron/03.desktop/09.session-storage",{"title":1578,"icon":1579,"path":1580,"stem":1581,"children":1582,"page":50},"资源、性能与导出","i-lucide-gauge","/document/electron/stability","document/44.electron/04.stability",[1583,1587,1591],{"title":1584,"path":1585,"stem":1586},"自定义协议、资源加载与深链接","/document/electron/stability/protocol-loading","document/44.electron/04.stability/10.protocol-loading",{"title":1588,"path":1589,"stem":1590},"耗时任务与性能排查","/document/electron/stability/tasks-performance","document/44.electron/04.stability/11.tasks-performance",{"title":1592,"path":1593,"stem":1594},"PDF 打印与报告导出","/document/electron/stability/pdf-report","document/44.electron/04.stability/12.pdf-report",{"title":1596,"icon":1597,"path":1598,"stem":1599,"children":1600,"page":50},"交付与实战","i-lucide-rocket","/document/electron/delivery","document/44.electron/05.delivery",[1601,1605,1609,1613],{"title":1602,"path":1603,"stem":1604},"应用打包与自动更新","/document/electron/delivery/package-update","document/44.electron/05.delivery/13.package-update",{"title":1606,"path":1607,"stem":1608},"桌面应用签名与公证","/document/electron/delivery/code-signing","document/44.electron/05.delivery/14.code-signing",{"title":1610,"path":1611,"stem":1612},"测试、监控与发布","/document/electron/delivery/test-monitor-release","document/44.electron/05.delivery/15.test-monitor-release",{"title":1614,"path":1615,"stem":1616},"实战：桌面资料管理工具","/document/electron/delivery/project-file-manager","document/44.electron/05.delivery/16.project-file-manager",{"id":1618,"title":1619,"body":1620,"description":3619,"extension":3620,"links":3621,"meta":3622,"navigation":3623,"path":1603,"seo":3624,"stem":1604,"__hash__":3625},"docs/document/44.electron/05.delivery/13.package-update.md","Electron 应用打包与自动更新",{"type":1621,"value":1622,"toc":3592},"minimal",[1623,1628,1637,1640,1666,1669,1673,1676,1723,1732,1742,1744,1748,1763,1803,1812,1815,1921,1923,1927,1932,2139,2156,2158,2162,2168,2379,2382,2390,2423,2434,2442,2445,2452,2461,2521,2524,2526,2530,2533,2548,2553,2564,2567,2581,2589,2592,2598,2600,2604,2607,2610,2613,2651,2655,2658,2674,2677,2699,2708,2761,2766,2778,2781,2817,2823,2834,2838,2845,2955,2958,2979,2984,2987,2990,2992,2996,3005,3008,3014,3017,3021,3033,3058,3062,3065,3133,3136,3140,3148,3260,3264,3269,3325,3331,3335,3348,3381,3384,3399,3402,3407,3409,3413,3454,3456,3460,3471,3480,3490,3499,3504,3512,3520,3523,3527,3536,3544,3565,3572,3585,3588],[1624,1625,1627],"h2",{"id":1626},"引言","🎯 引言",[1629,1630,1631,1632,1636],"p",{},"开发时执行 ",[1633,1634,1635],"code",{},"npm start","，运行的是项目源码。普通用户需要的是一个可以安装或直接打开的应用文件，所以发布前要把 Electron、页面代码和资源整理成应用包。",[1629,1638,1639],{},"本篇只解决三个问题：",[1641,1642,1643,1654,1663],"ul",{},[1644,1645,1646,1649,1650,1653],"li",{},[1633,1647,1648],{},"package.json"," 和 ",[1633,1651,1652],{},"forge.config.js"," 分别配置什么。",[1644,1655,1656,1649,1659,1662],{},[1633,1657,1658],{},"package",[1633,1660,1661],{},"make"," 分别生成什么。",[1644,1664,1665],{},"签名和自动更新在发布流程中解决什么问题。",[1667,1668],"hr",{},[1624,1670,1672],{"id":1671},"两个配置文件各自负责什么","🧱 两个配置文件，各自负责什么",[1629,1674,1675],{},"先记住这张表：",[1677,1678,1679,1695],"table",{},[1680,1681,1682],"thead",{},[1683,1684,1685,1689,1692],"tr",{},[1686,1687,1688],"th",{},"文件",[1686,1690,1691],{},"负责内容",[1686,1693,1694],{},"本篇会写什么",[1696,1697,1698,1711],"tbody",{},[1683,1699,1700,1705,1708],{},[1701,1702,1703],"td",{},[1633,1704,1648],{},[1701,1706,1707],{},"项目基本信息和命令",[1701,1709,1710],{},"应用名称、版本、入口文件、打包脚本",[1683,1712,1713,1717,1720],{},[1701,1714,1715],{},[1633,1716,1652],{},[1701,1718,1719],{},"Electron Forge 的打包规则",[1701,1721,1722],{},"应用图标、安装包格式、目标平台",[1629,1724,1725,1726,1728,1729,1731],{},"应用名称和版本写在 ",[1633,1727,1648],{},"，打包时使用的图标和安装包格式写在 ",[1633,1730,1652],{},"。两者不是同一个配置入口。",[1629,1733,1734,1737,1738,1741],{},[1633,1735,1736],{},"BrowserWindow"," 里的 ",[1633,1739,1740],{},"icon"," 是运行时窗口图标，和安装包图标不是一回事。为了避免混淆，本篇不把它放进打包流程；初学项目只配置 Forge 的应用图标即可。",[1667,1743],{},[1624,1745,1747],{"id":1746},"安装-electron-forge","🧰 安装 Electron Forge",[1629,1749,1750,1751,1754,1755,1758,1759,1762],{},"本篇示例使用 Node.js ",[1633,1752,1753],{},"24.x LTS","、Electron ",[1633,1756,1757],{},"44.0.0"," 和 Electron Forge ",[1633,1760,1761],{},"7.11.2","。在已有 Electron 项目中安装 Forge：",[1764,1765,1770],"pre",{"className":1766,"code":1767,"language":1768,"meta":1769,"style":1769},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","npm install --save-dev @electron-forge/cli@7.11.2\nnpx electron-forge import\n","bash","",[1633,1771,1772,1791],{"__ignoreMap":1769},[1773,1774,1777,1781,1785,1788],"span",{"class":1775,"line":1776},"line",1,[1773,1778,1780],{"class":1779},"sYGMc","npm",[1773,1782,1784],{"class":1783},"sIEYB"," install",[1773,1786,1787],{"class":1783}," --save-dev",[1773,1789,1790],{"class":1783}," @electron-forge/cli@7.11.2\n",[1773,1792,1794,1797,1800],{"class":1775,"line":1793},2,[1773,1795,1796],{"class":1779},"npx",[1773,1798,1799],{"class":1783}," electron-forge",[1773,1801,1802],{"class":1783}," import\n",[1804,1805,1806],"warning",{},[1629,1807,1808,1809,1811],{},"Electron Forge 的命令行提示和配置文件会随版本更新。本文以 Forge ",[1633,1810,1761],{}," 为例，实际操作时以项目安装的版本和官方文档为准。",[1629,1813,1814],{},"导入完成后，项目通常会增加下面三个命令：",[1764,1816,1820],{"className":1817,"code":1818,"filename":1648,"language":1819,"meta":1769,"style":1769},"language-json shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","{\n    \"scripts\": {\n        \"start\": \"electron-forge start\",\n        \"package\": \"electron-forge package\",\n        \"make\": \"electron-forge make\"\n    }\n}\n","json",[1633,1821,1822,1828,1846,1870,1890,1909,1915],{"__ignoreMap":1769},[1773,1823,1824],{"class":1775,"line":1776},[1773,1825,1827],{"class":1826},"s86vT","{\n",[1773,1829,1830,1833,1837,1840,1843],{"class":1775,"line":1793},[1773,1831,1832],{"class":1826},"    \"",[1773,1834,1836],{"class":1835},"s50WR","scripts",[1773,1838,1839],{"class":1826},"\"",[1773,1841,1842],{"class":1826},":",[1773,1844,1845],{"class":1826}," {\n",[1773,1847,1849,1852,1855,1857,1859,1862,1865,1867],{"class":1775,"line":1848},3,[1773,1850,1851],{"class":1826},"        \"",[1773,1853,1854],{"class":1779},"start",[1773,1856,1839],{"class":1826},[1773,1858,1842],{"class":1826},[1773,1860,1861],{"class":1826}," \"",[1773,1863,1864],{"class":1783},"electron-forge start",[1773,1866,1839],{"class":1826},[1773,1868,1869],{"class":1826},",\n",[1773,1871,1873,1875,1877,1879,1881,1883,1886,1888],{"class":1775,"line":1872},4,[1773,1874,1851],{"class":1826},[1773,1876,1658],{"class":1779},[1773,1878,1839],{"class":1826},[1773,1880,1842],{"class":1826},[1773,1882,1861],{"class":1826},[1773,1884,1885],{"class":1783},"electron-forge package",[1773,1887,1839],{"class":1826},[1773,1889,1869],{"class":1826},[1773,1891,1893,1895,1897,1899,1901,1903,1906],{"class":1775,"line":1892},5,[1773,1894,1851],{"class":1826},[1773,1896,1661],{"class":1779},[1773,1898,1839],{"class":1826},[1773,1900,1842],{"class":1826},[1773,1902,1861],{"class":1826},[1773,1904,1905],{"class":1783},"electron-forge make",[1773,1907,1908],{"class":1826},"\"\n",[1773,1910,1912],{"class":1775,"line":1911},6,[1773,1913,1914],{"class":1826},"    }\n",[1773,1916,1918],{"class":1775,"line":1917},7,[1773,1919,1920],{"class":1826},"}\n",[1667,1922],{},[1624,1924,1926],{"id":1925},"️-配置-packagejson","✍️ 配置 package.json",[1629,1928,1929,1931],{},[1633,1930,1648],{}," 只写应用的基本身份信息：",[1764,1933,1935],{"className":1817,"code":1934,"filename":1648,"language":1819,"meta":1769,"style":1769},"{\n    \"name\": \"electron-course\",\n    \"productName\": \"Electron Course\",\n    \"version\": \"1.0.0\",\n    \"description\": \"一个 Electron 学习项目\",\n    \"author\": \"Your Name\",\n    \"main\": \"main.js\",\n    \"scripts\": {\n        \"start\": \"electron-forge start\",\n        \"package\": \"electron-forge package\",\n        \"make\": \"electron-forge make\"\n    }\n}\n",[1633,1936,1937,1941,1961,1981,2001,2021,2041,2061,2074,2093,2112,2129,2134],{"__ignoreMap":1769},[1773,1938,1939],{"class":1775,"line":1776},[1773,1940,1827],{"class":1826},[1773,1942,1943,1945,1948,1950,1952,1954,1957,1959],{"class":1775,"line":1793},[1773,1944,1832],{"class":1826},[1773,1946,1947],{"class":1835},"name",[1773,1949,1839],{"class":1826},[1773,1951,1842],{"class":1826},[1773,1953,1861],{"class":1826},[1773,1955,1956],{"class":1783},"electron-course",[1773,1958,1839],{"class":1826},[1773,1960,1869],{"class":1826},[1773,1962,1963,1965,1968,1970,1972,1974,1977,1979],{"class":1775,"line":1848},[1773,1964,1832],{"class":1826},[1773,1966,1967],{"class":1835},"productName",[1773,1969,1839],{"class":1826},[1773,1971,1842],{"class":1826},[1773,1973,1861],{"class":1826},[1773,1975,1976],{"class":1783},"Electron Course",[1773,1978,1839],{"class":1826},[1773,1980,1869],{"class":1826},[1773,1982,1983,1985,1988,1990,1992,1994,1997,1999],{"class":1775,"line":1872},[1773,1984,1832],{"class":1826},[1773,1986,1987],{"class":1835},"version",[1773,1989,1839],{"class":1826},[1773,1991,1842],{"class":1826},[1773,1993,1861],{"class":1826},[1773,1995,1996],{"class":1783},"1.0.0",[1773,1998,1839],{"class":1826},[1773,2000,1869],{"class":1826},[1773,2002,2003,2005,2008,2010,2012,2014,2017,2019],{"class":1775,"line":1892},[1773,2004,1832],{"class":1826},[1773,2006,2007],{"class":1835},"description",[1773,2009,1839],{"class":1826},[1773,2011,1842],{"class":1826},[1773,2013,1861],{"class":1826},[1773,2015,2016],{"class":1783},"一个 Electron 学习项目",[1773,2018,1839],{"class":1826},[1773,2020,1869],{"class":1826},[1773,2022,2023,2025,2028,2030,2032,2034,2037,2039],{"class":1775,"line":1911},[1773,2024,1832],{"class":1826},[1773,2026,2027],{"class":1835},"author",[1773,2029,1839],{"class":1826},[1773,2031,1842],{"class":1826},[1773,2033,1861],{"class":1826},[1773,2035,2036],{"class":1783},"Your Name",[1773,2038,1839],{"class":1826},[1773,2040,1869],{"class":1826},[1773,2042,2043,2045,2048,2050,2052,2054,2057,2059],{"class":1775,"line":1917},[1773,2044,1832],{"class":1826},[1773,2046,2047],{"class":1835},"main",[1773,2049,1839],{"class":1826},[1773,2051,1842],{"class":1826},[1773,2053,1861],{"class":1826},[1773,2055,2056],{"class":1783},"main.js",[1773,2058,1839],{"class":1826},[1773,2060,1869],{"class":1826},[1773,2062,2064,2066,2068,2070,2072],{"class":1775,"line":2063},8,[1773,2065,1832],{"class":1826},[1773,2067,1836],{"class":1835},[1773,2069,1839],{"class":1826},[1773,2071,1842],{"class":1826},[1773,2073,1845],{"class":1826},[1773,2075,2077,2079,2081,2083,2085,2087,2089,2091],{"class":1775,"line":2076},9,[1773,2078,1851],{"class":1826},[1773,2080,1854],{"class":1779},[1773,2082,1839],{"class":1826},[1773,2084,1842],{"class":1826},[1773,2086,1861],{"class":1826},[1773,2088,1864],{"class":1783},[1773,2090,1839],{"class":1826},[1773,2092,1869],{"class":1826},[1773,2094,2096,2098,2100,2102,2104,2106,2108,2110],{"class":1775,"line":2095},10,[1773,2097,1851],{"class":1826},[1773,2099,1658],{"class":1779},[1773,2101,1839],{"class":1826},[1773,2103,1842],{"class":1826},[1773,2105,1861],{"class":1826},[1773,2107,1885],{"class":1783},[1773,2109,1839],{"class":1826},[1773,2111,1869],{"class":1826},[1773,2113,2115,2117,2119,2121,2123,2125,2127],{"class":1775,"line":2114},11,[1773,2116,1851],{"class":1826},[1773,2118,1661],{"class":1779},[1773,2120,1839],{"class":1826},[1773,2122,1842],{"class":1826},[1773,2124,1861],{"class":1826},[1773,2126,1905],{"class":1783},[1773,2128,1908],{"class":1826},[1773,2130,2132],{"class":1775,"line":2131},12,[1773,2133,1914],{"class":1826},[1773,2135,2137],{"class":1775,"line":2136},13,[1773,2138,1920],{"class":1826},[1629,2140,2141,2142,2152,2153,2155],{},"这里最容易混淆的是：",[2143,2144,2145,2146,2148,2149,2151],"strong",{},"本篇不在 ",[1633,2147,1648],{}," 中写 ",[1633,2150,1740],{},"。"," 应用图标由下面的 ",[1633,2154,1652],{}," 配置。",[1667,2157],{},[1624,2159,2161],{"id":2160},"️-配置-forgeconfigjs","⚙️ 配置 forge.config.js",[1629,2163,2164,2165,2167],{},"在项目根目录创建 ",[1633,2166,1652],{},"：",[1764,2169,2173],{"className":2170,"code":2171,"filename":1652,"language":2172,"meta":1769,"style":1769},"language-js shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","module.exports = {\n    packagerConfig: {\n        icon: './assets/icon',\n    },\n    makers: [\n        {\n            name: '@electron-forge/maker-zip',\n            platforms: ['darwin'],\n        },\n        {\n            name: '@electron-forge/maker-squirrel',\n            platforms: ['win32'],\n        },\n        {\n            name: '@electron-forge/maker-deb',\n            platforms: ['linux'],\n        },\n    ],\n};\n","js",[1633,2174,2175,2185,2195,2213,2218,2229,2234,2250,2272,2277,2281,2296,2315,2319,2324,2340,2360,2365,2373],{"__ignoreMap":1769},[1773,2176,2177,2180,2183],{"class":1775,"line":1776},[1773,2178,2179],{"class":1826},"module.exports",[1773,2181,2182],{"class":1826}," =",[1773,2184,1845],{"class":1826},[1773,2186,2187,2191,2193],{"class":1775,"line":1793},[1773,2188,2190],{"class":2189},"sd2Uz","    packagerConfig",[1773,2192,1842],{"class":1826},[1773,2194,1845],{"class":1826},[1773,2196,2197,2200,2202,2205,2208,2211],{"class":1775,"line":1848},[1773,2198,2199],{"class":2189},"        icon",[1773,2201,1842],{"class":1826},[1773,2203,2204],{"class":1826}," '",[1773,2206,2207],{"class":1783},"./assets/icon",[1773,2209,2210],{"class":1826},"'",[1773,2212,1869],{"class":1826},[1773,2214,2215],{"class":1775,"line":1872},[1773,2216,2217],{"class":1826},"    },\n",[1773,2219,2220,2223,2225],{"class":1775,"line":1892},[1773,2221,2222],{"class":2189},"    makers",[1773,2224,1842],{"class":1826},[1773,2226,2228],{"class":2227},"sndM8"," [\n",[1773,2230,2231],{"class":1775,"line":1911},[1773,2232,2233],{"class":1826},"        {\n",[1773,2235,2236,2239,2241,2243,2246,2248],{"class":1775,"line":1917},[1773,2237,2238],{"class":2189},"            name",[1773,2240,1842],{"class":1826},[1773,2242,2204],{"class":1826},[1773,2244,2245],{"class":1783},"@electron-forge/maker-zip",[1773,2247,2210],{"class":1826},[1773,2249,1869],{"class":1826},[1773,2251,2252,2255,2257,2260,2262,2265,2267,2270],{"class":1775,"line":2063},[1773,2253,2254],{"class":2189},"            platforms",[1773,2256,1842],{"class":1826},[1773,2258,2259],{"class":2227}," [",[1773,2261,2210],{"class":1826},[1773,2263,2264],{"class":1783},"darwin",[1773,2266,2210],{"class":1826},[1773,2268,2269],{"class":2227},"]",[1773,2271,1869],{"class":1826},[1773,2273,2274],{"class":1775,"line":2076},[1773,2275,2276],{"class":1826},"        },\n",[1773,2278,2279],{"class":1775,"line":2095},[1773,2280,2233],{"class":1826},[1773,2282,2283,2285,2287,2289,2292,2294],{"class":1775,"line":2114},[1773,2284,2238],{"class":2189},[1773,2286,1842],{"class":1826},[1773,2288,2204],{"class":1826},[1773,2290,2291],{"class":1783},"@electron-forge/maker-squirrel",[1773,2293,2210],{"class":1826},[1773,2295,1869],{"class":1826},[1773,2297,2298,2300,2302,2304,2306,2309,2311,2313],{"class":1775,"line":2131},[1773,2299,2254],{"class":2189},[1773,2301,1842],{"class":1826},[1773,2303,2259],{"class":2227},[1773,2305,2210],{"class":1826},[1773,2307,2308],{"class":1783},"win32",[1773,2310,2210],{"class":1826},[1773,2312,2269],{"class":2227},[1773,2314,1869],{"class":1826},[1773,2316,2317],{"class":1775,"line":2136},[1773,2318,2276],{"class":1826},[1773,2320,2322],{"class":1775,"line":2321},14,[1773,2323,2233],{"class":1826},[1773,2325,2327,2329,2331,2333,2336,2338],{"class":1775,"line":2326},15,[1773,2328,2238],{"class":2189},[1773,2330,1842],{"class":1826},[1773,2332,2204],{"class":1826},[1773,2334,2335],{"class":1783},"@electron-forge/maker-deb",[1773,2337,2210],{"class":1826},[1773,2339,1869],{"class":1826},[1773,2341,2343,2345,2347,2349,2351,2354,2356,2358],{"class":1775,"line":2342},16,[1773,2344,2254],{"class":2189},[1773,2346,1842],{"class":1826},[1773,2348,2259],{"class":2227},[1773,2350,2210],{"class":1826},[1773,2352,2353],{"class":1783},"linux",[1773,2355,2210],{"class":1826},[1773,2357,2269],{"class":2227},[1773,2359,1869],{"class":1826},[1773,2361,2363],{"class":1775,"line":2362},17,[1773,2364,2276],{"class":1826},[1773,2366,2368,2371],{"class":1775,"line":2367},18,[1773,2369,2370],{"class":2227},"    ]",[1773,2372,1869],{"class":1826},[1773,2374,2376],{"class":1775,"line":2375},19,[1773,2377,2378],{"class":1826},"};\n",[1629,2380,2381],{},"这段配置只看两部分：",[2383,2384,2386,2387],"h3",{"id":2385},"_1-packagerconfigicon","1. ",[1633,2388,2389],{},"packagerConfig.icon",[1764,2391,2393],{"className":2170,"code":2392,"language":2172,"meta":1769,"style":1769},"packagerConfig: {\n    icon: './assets/icon',\n}\n",[1633,2394,2395,2404,2419],{"__ignoreMap":1769},[1773,2396,2397,2400,2402],{"class":1775,"line":1776},[1773,2398,2399],{"class":1779},"packagerConfig",[1773,2401,1842],{"class":1826},[1773,2403,1845],{"class":1826},[1773,2405,2406,2409,2411,2413,2415,2417],{"class":1775,"line":1793},[1773,2407,2408],{"class":1779},"    icon",[1773,2410,1842],{"class":1826},[1773,2412,2204],{"class":1826},[1773,2414,2207],{"class":1783},[1773,2416,2210],{"class":1826},[1773,2418,1869],{"class":1826},[1773,2420,2421],{"class":1775,"line":1848},[1773,2422,1920],{"class":1826},[1629,2424,2425,2426,2429,2430,2433],{},"它告诉 Forge 去 ",[1633,2427,2428],{},"assets"," 目录寻找应用图标。这里写",[2143,2431,2432],{},"不带扩展名","的路径，Forge 会根据目标系统寻找对应格式的图标文件：",[1764,2435,2440],{"className":2436,"code":2438,"language":2439,"meta":1769},[2437],"language-text","assets/\n├── icon.ico    # Windows\n├── icon.icns   # macOS\n└── icon.png    # Linux\n","text",[1633,2441,2438],{"__ignoreMap":1769},[1629,2443,2444],{},"这配置的是打包后应用使用的图标，不是 Vue 页面里的图片，也不是窗口运行时动态设置的图标。",[2383,2446,2448,2449],{"id":2447},"_2-makers","2. ",[1633,2450,2451],{},"makers",[1629,2453,2454,2456,2457,2460],{},[1633,2455,2451],{}," 决定 ",[1633,2458,2459],{},"npm run make"," 要生成什么格式的分发文件：",[1677,2462,2463,2476],{},[1680,2464,2465],{},[1683,2466,2467,2470,2473],{},[1686,2468,2469],{},"maker",[1686,2471,2472],{},"目标系统",[1686,2474,2475],{},"作用",[1696,2477,2478,2491,2504],{},[1683,2479,2480,2485,2488],{},[1701,2481,2482],{},[1633,2483,2484],{},"maker-zip",[1701,2486,2487],{},"macOS",[1701,2489,2490],{},"生成 zip 压缩包",[1683,2492,2493,2498,2501],{},[1701,2494,2495],{},[1633,2496,2497],{},"maker-squirrel",[1701,2499,2500],{},"Windows",[1701,2502,2503],{},"生成 Windows 安装程序",[1683,2505,2506,2511,2514],{},[1701,2507,2508],{},[1633,2509,2510],{},"maker-deb",[1701,2512,2513],{},"Linux",[1701,2515,2516,2517,2520],{},"生成 ",[1633,2518,2519],{},".deb"," 安装包",[1629,2522,2523],{},"不需要发布某个系统时，可以先删掉对应的 maker。初学时只在当前系统生成一种产物更容易检查。",[1667,2525],{},[1624,2527,2529],{"id":2528},"package-和-make-的区别","📦 package 和 make 的区别",[1629,2531,2532],{},"先执行：",[1764,2534,2536],{"className":1766,"code":2535,"language":1768,"meta":1769,"style":1769},"npm run package\n",[1633,2537,2538],{"__ignoreMap":1769},[1773,2539,2540,2542,2545],{"class":1775,"line":1776},[1773,2541,1780],{"class":1779},[1773,2543,2544],{"class":1783}," run",[1773,2546,2547],{"class":1783}," package\n",[1629,2549,2550,2552],{},[1633,2551,1658],{}," 会把源码、页面和 Electron 运行时整理成一个可以启动的应用目录。它适合先验证：",[1641,2554,2555,2558,2561],{},[1644,2556,2557],{},"应用能不能启动。",[1644,2559,2560],{},"页面资源路径是否正确。",[1644,2562,2563],{},"图标和应用名称是否生效。",[1629,2565,2566],{},"确认应用目录可以运行后，再执行：",[1764,2568,2570],{"className":1766,"code":2569,"language":1768,"meta":1769,"style":1769},"npm run make\n",[1633,2571,2572],{"__ignoreMap":1769},[1773,2573,2574,2576,2578],{"class":1775,"line":1776},[1773,2575,1780],{"class":1779},[1773,2577,2544],{"class":1783},[1773,2579,2580],{"class":1783}," make\n",[1629,2582,2583,2585,2586,2588],{},[1633,2584,1661],{}," 会使用 ",[1633,2587,2451],{}," 配置，把应用目录进一步制作成安装程序或压缩包，供用户安装或分发。",[1629,2590,2591],{},"所以可以这样记：",[1764,2593,2596],{"className":2594,"code":2595,"language":2439,"meta":1769},[2437],"package：整理出一个能运行的应用\nmake：把这个应用做成方便交付的文件\n",[1633,2597,2595],{"__ignoreMap":1769},[1667,2599],{},[1624,2601,2603],{"id":2602},"签名先了解什么","🔏 签名先了解什么",[1629,2605,2606],{},"签名的作用是告诉操作系统：这个应用是谁发布的，并且安装包发布后没有被修改。",[1629,2608,2609],{},"完整的签名流程会在下一篇单独讲解。本节只需要知道：正式发布时要准备平台证书，Forge 负责在打包过程中使用证书；没有证书时，学习阶段可以先跳过签名。",[1629,2611,2612],{},"可以这样区分：",[1677,2614,2615,2625],{},[1680,2616,2617],{},[1683,2618,2619,2622],{},[1686,2620,2621],{},"目标",[1686,2623,2624],{},"本节能帮你完成什么",[1696,2626,2627,2635,2643],{},[1683,2628,2629,2632],{},[1701,2630,2631],{},"本地学习",[1701,2633,2634],{},"可以不签名，先完成打包",[1683,2636,2637,2640],{},[1701,2638,2639],{},"本地验证签名",[1701,2641,2642],{},"配置证书后，使用 Forge 签名并检查结果",[1683,2644,2645,2648],{},[1701,2646,2647],{},"对外发布",[1701,2649,2650],{},"还需要证书申请、公证、安装包测试和安全保存凭证",[2383,2652,2654],{"id":2653},"macos在-forge-中开启签名","macOS：在 Forge 中开启签名",[1629,2656,2657],{},"你需要先准备：",[2659,2660,2661,2664,2671],"ol",{},[1644,2662,2663],{},"Apple Developer Program 账号。",[1644,2665,2666,2667,2670],{},"安装到当前 Mac 的 ",[1633,2668,2669],{},"Developer ID Application"," 证书。",[1644,2672,2673],{},"Xcode 命令行工具。",[1629,2675,2676],{},"先检查 Mac 是否能找到签名证书：",[1764,2678,2680],{"className":1766,"code":2679,"language":1768,"meta":1769,"style":1769},"security find-identity -p codesigning -v\n",[1633,2681,2682],{"__ignoreMap":1769},[1773,2683,2684,2687,2690,2693,2696],{"class":1775,"line":1776},[1773,2685,2686],{"class":1779},"security",[1773,2688,2689],{"class":1783}," find-identity",[1773,2691,2692],{"class":1783}," -p",[1773,2694,2695],{"class":1783}," codesigning",[1773,2697,2698],{"class":1783}," -v\n",[1629,2700,2701,2702,2704,2705,2167],{},"然后在已有的 ",[1633,2703,2399],{}," 中加入 ",[1633,2706,2707],{},"osxSign: {}",[1764,2709,2711],{"className":2170,"code":2710,"filename":1652,"language":2172,"meta":1769,"style":1769},"module.exports = {\n    packagerConfig: {\n        icon: './assets/icon',\n        osxSign: {},\n    },\n};\n",[1633,2712,2713,2721,2729,2743,2753,2757],{"__ignoreMap":1769},[1773,2714,2715,2717,2719],{"class":1775,"line":1776},[1773,2716,2179],{"class":1826},[1773,2718,2182],{"class":1826},[1773,2720,1845],{"class":1826},[1773,2722,2723,2725,2727],{"class":1775,"line":1793},[1773,2724,2190],{"class":2189},[1773,2726,1842],{"class":1826},[1773,2728,1845],{"class":1826},[1773,2730,2731,2733,2735,2737,2739,2741],{"class":1775,"line":1848},[1773,2732,2199],{"class":2189},[1773,2734,1842],{"class":1826},[1773,2736,2204],{"class":1826},[1773,2738,2207],{"class":1783},[1773,2740,2210],{"class":1826},[1773,2742,1869],{"class":1826},[1773,2744,2745,2748,2750],{"class":1775,"line":1872},[1773,2746,2747],{"class":2189},"        osxSign",[1773,2749,1842],{"class":1826},[1773,2751,2752],{"class":1826}," {},\n",[1773,2754,2755],{"class":1775,"line":1892},[1773,2756,2217],{"class":1826},[1773,2758,2759],{"class":1775,"line":1911},[1773,2760,2378],{"class":1826},[1629,2762,2763,2765],{},[1633,2764,2707],{}," 的意思是：让 Forge 使用当前 Mac 已安装的签名证书给应用签名。之后执行：",[1764,2767,2768],{"className":1766,"code":2535,"language":1768,"meta":1769,"style":1769},[1633,2769,2770],{"__ignoreMap":1769},[1773,2771,2772,2774,2776],{"class":1775,"line":1776},[1773,2773,1780],{"class":1779},[1773,2775,2544],{"class":1783},[1773,2777,2547],{"class":1783},[1629,2779,2780],{},"如果签名成功，生成的 macOS 应用就带有代码签名。可以用下面的命令检查：",[1764,2782,2784],{"className":1766,"code":2783,"language":1768,"meta":1769,"style":1769},"codesign --verify --deep --strict --verbose=2 \\\n    out/electron-course-darwin-arm64/Electron\\ Course.app\n",[1633,2785,2786,2806],{"__ignoreMap":1769},[1773,2787,2788,2791,2794,2797,2800,2803],{"class":1775,"line":1776},[1773,2789,2790],{"class":1779},"codesign",[1773,2792,2793],{"class":1783}," --verify",[1773,2795,2796],{"class":1783}," --deep",[1773,2798,2799],{"class":1783}," --strict",[1773,2801,2802],{"class":1783}," --verbose=2",[1773,2804,2805],{"class":2227}," \\\n",[1773,2807,2808,2811,2814],{"class":1775,"line":1793},[1773,2809,2810],{"class":1783},"    out/electron-course-darwin-arm64/Electron",[1773,2812,2813],{"class":2227},"\\ ",[1773,2815,2816],{"class":1783},"Course.app\n",[1629,2818,2819,2820,2822],{},"macOS 对外发布通常还需要公证。公证需要 Apple 账号或 App Store Connect API Key，凭证应放在环境变量或钥匙串中，不要写进 ",[1633,2821,1652],{}," 并提交到代码仓库。",[1629,2824,2825,2826,2829,2830,2833],{},"所以 macOS 对外发布至少要完成：",[2143,2827,2828],{},"Developer ID Application 签名、打包、提交 Apple 公证、公证通过后再分发","。只执行 ",[1633,2831,2832],{},"npm run package"," 并不等于已经完成面向用户的 macOS 发布。",[2383,2835,2837],{"id":2836},"windows给安装程序配置证书","Windows：给安装程序配置证书",[1629,2839,2840,2841,2844],{},"Windows 签名需要代码签名证书文件，例如 ",[1633,2842,2843],{},".pfx","，以及证书密码。把证书配置到 Windows maker 中：",[1764,2846,2848],{"className":2170,"code":2847,"filename":1652,"language":2172,"meta":1769,"style":1769},"module.exports = {\n    makers: [\n        {\n            name: '@electron-forge/maker-squirrel',\n            config: {\n                certificateFile: process.env.WINDOWS_CERTIFICATE_FILE,\n                certificatePassword: process.env.WINDOWS_CERTIFICATE_PASSWORD,\n            },\n        },\n    ],\n};\n",[1633,2849,2850,2858,2866,2870,2884,2893,2916,2936,2941,2945,2951],{"__ignoreMap":1769},[1773,2851,2852,2854,2856],{"class":1775,"line":1776},[1773,2853,2179],{"class":1826},[1773,2855,2182],{"class":1826},[1773,2857,1845],{"class":1826},[1773,2859,2860,2862,2864],{"class":1775,"line":1793},[1773,2861,2222],{"class":2189},[1773,2863,1842],{"class":1826},[1773,2865,2228],{"class":2227},[1773,2867,2868],{"class":1775,"line":1848},[1773,2869,2233],{"class":1826},[1773,2871,2872,2874,2876,2878,2880,2882],{"class":1775,"line":1872},[1773,2873,2238],{"class":2189},[1773,2875,1842],{"class":1826},[1773,2877,2204],{"class":1826},[1773,2879,2291],{"class":1783},[1773,2881,2210],{"class":1826},[1773,2883,1869],{"class":1826},[1773,2885,2886,2889,2891],{"class":1775,"line":1892},[1773,2887,2888],{"class":2189},"            config",[1773,2890,1842],{"class":1826},[1773,2892,1845],{"class":1826},[1773,2894,2895,2898,2900,2903,2906,2909,2911,2914],{"class":1775,"line":1911},[1773,2896,2897],{"class":2189},"                certificateFile",[1773,2899,1842],{"class":1826},[1773,2901,2902],{"class":2227}," process",[1773,2904,2905],{"class":1826},".",[1773,2907,2908],{"class":2227},"env",[1773,2910,2905],{"class":1826},[1773,2912,2913],{"class":2227},"WINDOWS_CERTIFICATE_FILE",[1773,2915,1869],{"class":1826},[1773,2917,2918,2921,2923,2925,2927,2929,2931,2934],{"class":1775,"line":1917},[1773,2919,2920],{"class":2189},"                certificatePassword",[1773,2922,1842],{"class":1826},[1773,2924,2902],{"class":2227},[1773,2926,2905],{"class":1826},[1773,2928,2908],{"class":2227},[1773,2930,2905],{"class":1826},[1773,2932,2933],{"class":2227},"WINDOWS_CERTIFICATE_PASSWORD",[1773,2935,1869],{"class":1826},[1773,2937,2938],{"class":1775,"line":2063},[1773,2939,2940],{"class":1826},"            },\n",[1773,2942,2943],{"class":1775,"line":2076},[1773,2944,2276],{"class":1826},[1773,2946,2947,2949],{"class":1775,"line":2095},[1773,2948,2370],{"class":2227},[1773,2950,1869],{"class":1826},[1773,2952,2953],{"class":1775,"line":2114},[1773,2954,2378],{"class":1826},[1629,2956,2957],{},"在 Windows PowerShell 中临时提供环境变量，再生成安装程序：",[1764,2959,2963],{"className":2960,"code":2961,"language":2962,"meta":1769,"style":1769},"language-powershell shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","$env:WINDOWS_CERTIFICATE_FILE = 'C:\\certs\\electron-course.pfx'\n$env:WINDOWS_CERTIFICATE_PASSWORD = '证书密码'\nnpm run make\n","powershell",[1633,2964,2965,2970,2975],{"__ignoreMap":1769},[1773,2966,2967],{"class":1775,"line":1776},[1773,2968,2969],{},"$env:WINDOWS_CERTIFICATE_FILE = 'C:\\certs\\electron-course.pfx'\n",[1773,2971,2972],{"class":1775,"line":1793},[1773,2973,2974],{},"$env:WINDOWS_CERTIFICATE_PASSWORD = '证书密码'\n",[1773,2976,2977],{"class":1775,"line":1848},[1773,2978,2569],{},[1804,2980,2981],{},[1629,2982,2983],{},"证书文件和密码都属于敏感信息，不要提交到 Git。Apple、Microsoft 和证书服务商的申请页面会更新，申请证书时以当前平台要求为准。",[1629,2985,2986],{},"Windows 对外发布还要确认签名覆盖了最终分发的安装程序，并在没有开发环境的干净 Windows 机器上测试安装、启动和卸载。证书类型、时间戳服务和 SmartScreen 提示也属于 Windows 发布流程的一部分。",[1629,2988,2989],{},"因此，本文步骤可以完成“Forge 使用证书签名”的核心操作，但不能替代平台证书申请、macOS 公证和正式发布检查。",[1667,2991],{},[1624,2993,2995],{"id":2994},"如何实现自动更新","🔄 如何实现自动更新",[1629,2997,2998,2999,2151],{},"这里选择一条适合入门的路径：",[2143,3000,3001,3002],{},"公开 GitHub 仓库 + GitHub Releases + ",[1633,3003,3004],{},"update-electron-app",[1629,3006,3007],{},"这条路径的完整过程是：",[1764,3009,3012],{"className":3010,"code":3011,"language":2439,"meta":1769},[2437],"Forge 生成安装包\n    ↓\n发布到 GitHub Release\n    ↓\n应用启动时检查 Release\n    ↓\n发现新版本后下载并提示重启\n",[1633,3013,3011],{"__ignoreMap":1769},[1629,3015,3016],{},"这条方案有几个前提：应用运行在 macOS 或 Windows，代码发布在公开 GitHub 仓库，构建文件发布到 GitHub Releases；macOS 应用还必须签名。Linux 不使用 Electron 内置自动更新，通常由 Linux 发行版的软件包管理器负责更新。",[2383,3018,3020],{"id":3019},"第一步安装更新依赖","第一步：安装更新依赖",[1629,3022,3023,3024,3026,3027,3030,3031,2167],{},"本篇使用 ",[1633,3025,3004],{}," ",[1633,3028,3029],{},"3.3.0"," 和 Forge GitHub Publisher ",[1633,3032,1761],{},[1764,3034,3036],{"className":1766,"code":3035,"language":1768,"meta":1769,"style":1769},"npm install update-electron-app@3.3.0\nnpm install --save-dev @electron-forge/publisher-github@7.11.2\n",[1633,3037,3038,3047],{"__ignoreMap":1769},[1773,3039,3040,3042,3044],{"class":1775,"line":1776},[1773,3041,1780],{"class":1779},[1773,3043,1784],{"class":1783},[1773,3045,3046],{"class":1783}," update-electron-app@3.3.0\n",[1773,3048,3049,3051,3053,3055],{"class":1775,"line":1793},[1773,3050,1780],{"class":1779},[1773,3052,1784],{"class":1783},[1773,3054,1787],{"class":1783},[1773,3056,3057],{"class":1783}," @electron-forge/publisher-github@7.11.2\n",[2383,3059,3061],{"id":3060},"第二步在-packagejson-写仓库地址","第二步：在 package.json 写仓库地址",[1629,3063,3064],{},"更新工具需要知道应用对应哪个 GitHub 仓库：",[1764,3066,3068],{"className":1817,"code":3067,"filename":1648,"language":1819,"meta":1769,"style":1769},"{\n    \"repository\": {\n        \"type\": \"git\",\n        \"url\": \"https://github.com/你的用户名/electron-course.git\"\n    }\n}\n",[1633,3069,3070,3074,3087,3107,3125,3129],{"__ignoreMap":1769},[1773,3071,3072],{"class":1775,"line":1776},[1773,3073,1827],{"class":1826},[1773,3075,3076,3078,3081,3083,3085],{"class":1775,"line":1793},[1773,3077,1832],{"class":1826},[1773,3079,3080],{"class":1835},"repository",[1773,3082,1839],{"class":1826},[1773,3084,1842],{"class":1826},[1773,3086,1845],{"class":1826},[1773,3088,3089,3091,3094,3096,3098,3100,3103,3105],{"class":1775,"line":1848},[1773,3090,1851],{"class":1826},[1773,3092,3093],{"class":1779},"type",[1773,3095,1839],{"class":1826},[1773,3097,1842],{"class":1826},[1773,3099,1861],{"class":1826},[1773,3101,3102],{"class":1783},"git",[1773,3104,1839],{"class":1826},[1773,3106,1869],{"class":1826},[1773,3108,3109,3111,3114,3116,3118,3120,3123],{"class":1775,"line":1872},[1773,3110,1851],{"class":1826},[1773,3112,3113],{"class":1779},"url",[1773,3115,1839],{"class":1826},[1773,3117,1842],{"class":1826},[1773,3119,1861],{"class":1826},[1773,3121,3122],{"class":1783},"https://github.com/你的用户名/electron-course.git",[1773,3124,1908],{"class":1826},[1773,3126,3127],{"class":1775,"line":1892},[1773,3128,1914],{"class":1826},[1773,3130,3131],{"class":1775,"line":1911},[1773,3132,1920],{"class":1826},[1629,3134,3135],{},"把示例地址换成自己的公开仓库地址。",[2383,3137,3139],{"id":3138},"第三步配置-github-publisher","第三步：配置 GitHub Publisher",[1629,3141,3142,3143,2704,3145,2167],{},"在 ",[1633,3144,1652],{},[1633,3146,3147],{},"publishers",[1764,3149,3151],{"className":2170,"code":3150,"filename":1652,"language":2172,"meta":1769,"style":1769},"module.exports = {\n    publishers: [\n        {\n            name: '@electron-forge/publisher-github',\n            config: {\n                repository: {\n                    owner: '你的 GitHub 用户名',\n                    name: 'electron-course',\n                },\n            },\n        },\n    ],\n};\n",[1633,3152,3153,3161,3170,3174,3189,3197,3206,3222,3237,3242,3246,3250,3256],{"__ignoreMap":1769},[1773,3154,3155,3157,3159],{"class":1775,"line":1776},[1773,3156,2179],{"class":1826},[1773,3158,2182],{"class":1826},[1773,3160,1845],{"class":1826},[1773,3162,3163,3166,3168],{"class":1775,"line":1793},[1773,3164,3165],{"class":2189},"    publishers",[1773,3167,1842],{"class":1826},[1773,3169,2228],{"class":2227},[1773,3171,3172],{"class":1775,"line":1848},[1773,3173,2233],{"class":1826},[1773,3175,3176,3178,3180,3182,3185,3187],{"class":1775,"line":1872},[1773,3177,2238],{"class":2189},[1773,3179,1842],{"class":1826},[1773,3181,2204],{"class":1826},[1773,3183,3184],{"class":1783},"@electron-forge/publisher-github",[1773,3186,2210],{"class":1826},[1773,3188,1869],{"class":1826},[1773,3190,3191,3193,3195],{"class":1775,"line":1892},[1773,3192,2888],{"class":2189},[1773,3194,1842],{"class":1826},[1773,3196,1845],{"class":1826},[1773,3198,3199,3202,3204],{"class":1775,"line":1911},[1773,3200,3201],{"class":2189},"                repository",[1773,3203,1842],{"class":1826},[1773,3205,1845],{"class":1826},[1773,3207,3208,3211,3213,3215,3218,3220],{"class":1775,"line":1917},[1773,3209,3210],{"class":2189},"                    owner",[1773,3212,1842],{"class":1826},[1773,3214,2204],{"class":1826},[1773,3216,3217],{"class":1783},"你的 GitHub 用户名",[1773,3219,2210],{"class":1826},[1773,3221,1869],{"class":1826},[1773,3223,3224,3227,3229,3231,3233,3235],{"class":1775,"line":2063},[1773,3225,3226],{"class":2189},"                    name",[1773,3228,1842],{"class":1826},[1773,3230,2204],{"class":1826},[1773,3232,1956],{"class":1783},[1773,3234,2210],{"class":1826},[1773,3236,1869],{"class":1826},[1773,3238,3239],{"class":1775,"line":2076},[1773,3240,3241],{"class":1826},"                },\n",[1773,3243,3244],{"class":1775,"line":2095},[1773,3245,2940],{"class":1826},[1773,3247,3248],{"class":1775,"line":2114},[1773,3249,2276],{"class":1826},[1773,3251,3252,3254],{"class":1775,"line":2131},[1773,3253,2370],{"class":2227},[1773,3255,1869],{"class":1826},[1773,3257,3258],{"class":1775,"line":2136},[1773,3259,2378],{"class":1826},[2383,3261,3263],{"id":3262},"第四步在主进程启动自动更新","第四步：在主进程启动自动更新",[1629,3265,3142,3266,3268],{},[1633,3267,2056],{}," 顶部加入：",[1764,3270,3272],{"className":2170,"code":3271,"filename":2056,"language":2172,"meta":1769,"style":1769},"const { updateElectronApp } = require('update-electron-app');\n\nupdateElectronApp();\n",[1633,3273,3274,3309,3315],{"__ignoreMap":1769},[1773,3275,3276,3279,3282,3285,3288,3290,3294,3297,3299,3301,3303,3306],{"class":1775,"line":1776},[1773,3277,3278],{"class":1835},"const",[1773,3280,3281],{"class":1826}," {",[1773,3283,3284],{"class":2227}," updateElectronApp ",[1773,3286,3287],{"class":1826},"}",[1773,3289,2182],{"class":1826},[1773,3291,3293],{"class":3292},"swgpB"," require",[1773,3295,3296],{"class":2227},"(",[1773,3298,2210],{"class":1826},[1773,3300,3004],{"class":1783},[1773,3302,2210],{"class":1826},[1773,3304,3305],{"class":2227},")",[1773,3307,3308],{"class":1826},";\n",[1773,3310,3311],{"class":1775,"line":1793},[1773,3312,3314],{"emptyLinePlaceholder":3313},true,"\n",[1773,3316,3317,3320,3323],{"class":1775,"line":1848},[1773,3318,3319],{"class":3292},"updateElectronApp",[1773,3321,3322],{"class":2227},"()",[1773,3324,3308],{"class":1826},[1629,3326,3327,3328,3330],{},"这行代码会让应用启动时检查更新，发现新版本后在后台下载，并提示用户重启安装。它不会在开发环境的 ",[1633,3329,1635],{}," 中产生有意义的更新结果，必须测试打包后的应用。",[2383,3332,3334],{"id":3333},"第五步发布新版本","第五步：发布新版本",[1629,3336,3337,3338,3340,3341,3343,3344,3347],{},"先把 ",[1633,3339,1648],{}," 的版本从 ",[1633,3342,1996],{}," 改成 ",[1633,3345,3346],{},"1.0.1","，再配置 GitHub Token：",[1764,3349,3351],{"className":1766,"code":3350,"language":1768,"meta":1769,"style":1769},"export GITHUB_TOKEN='你的 GitHub Token'\nnpx electron-forge publish\n",[1633,3352,3353,3372],{"__ignoreMap":1769},[1773,3354,3355,3358,3361,3364,3366,3369],{"class":1775,"line":1776},[1773,3356,3357],{"class":1835},"export",[1773,3359,3360],{"class":2227}," GITHUB_TOKEN",[1773,3362,3363],{"class":1826},"=",[1773,3365,2210],{"class":1826},[1773,3367,3368],{"class":1783},"你的 GitHub Token",[1773,3370,3371],{"class":1826},"'\n",[1773,3373,3374,3376,3378],{"class":1775,"line":1793},[1773,3375,1796],{"class":1779},[1773,3377,1799],{"class":1783},[1773,3379,3380],{"class":1783}," publish\n",[1629,3382,3383],{},"Windows PowerShell 使用：",[1764,3385,3387],{"className":2960,"code":3386,"language":2962,"meta":1769,"style":1769},"$env:GITHUB_TOKEN = '你的 GitHub Token'\nnpx electron-forge publish\n",[1633,3388,3389,3394],{"__ignoreMap":1769},[1773,3390,3391],{"class":1775,"line":1776},[1773,3392,3393],{},"$env:GITHUB_TOKEN = '你的 GitHub Token'\n",[1773,3395,3396],{"class":1775,"line":1793},[1773,3397,3398],{},"npx electron-forge publish\n",[1629,3400,3401],{},"Forge 会生成当前系统的分发文件并上传到 GitHub Release。旧版本应用下次启动时就能检查到新版本。",[1804,3403,3404],{},[1629,3405,3406],{},"GitHub 仓库、Release 页面和 Token 权限设置会随平台界面变化。Token 不要写入代码或提交到 Git，实际发布时以 GitHub 和 Electron Forge 当前文档为准。",[1667,3408],{},[1624,3410,3412],{"id":3411},"小节总结","🧾 小节总结",[1641,3414,3415,3420,3425,3433,3441,3448],{},[1644,3416,3417,3419],{},[1633,3418,1648],{}," 保存应用信息、入口文件和命令。",[1644,3421,3422,3424],{},[1633,3423,1652],{}," 保存 Forge 的打包规则和安装包格式。",[1644,3426,3427,3429,3430,3432],{},[1633,3428,2389],{}," 配置打包应用图标，不需要在 ",[1633,3431,1648],{}," 重复配置。",[1644,3434,3435,3437,3438,3440],{},[1633,3436,1658],{}," 生成可运行的应用目录，",[1633,3439,1661],{}," 生成可分发文件。",[1644,3442,3443,3444,3447],{},"macOS 通过 ",[1633,3445,3446],{},"packagerConfig.osxSign"," 开启签名，Windows 在 maker 中配置证书文件和密码。",[1644,3449,3450,3451,3453],{},"GitHub Releases 配合 ",[1633,3452,3004],{},"，可以让 macOS 和 Windows 应用检查并下载新版本。",[1667,3455],{},[1624,3457,3459],{"id":3458},"知识问答","❓ 知识问答",[1629,3461,3462],{},[2143,3463,3464,3465,3467,3468,3470],{},"Q1：为什么 ",[1633,3466,1648],{}," 示例里没有 ",[1633,3469,1740],{},"？",[1629,3472,3473,3474,3476,3477,3479],{},"A：因为本篇使用 Forge 配置图标，图标写在 ",[1633,3475,1652],{}," 的 ",[1633,3478,2389],{}," 中。",[1629,3481,3482],{},[2143,3483,3484,3485,1649,3487,3489],{},"Q2：",[1633,3486,1658],{},[1633,3488,1661],{}," 都要执行吗？",[1629,3491,3492,3493,3495,3496,3498],{},"A：建议先执行 ",[1633,3494,1658],{}," 检查应用能否启动，再执行 ",[1633,3497,1661],{}," 生成分发文件。",[1629,3500,3501],{},[2143,3502,3503],{},"Q3：学习 Electron 必须配置签名和自动更新吗？",[1629,3505,3506,3507,1649,3509,3511],{},"A：不需要。学习阶段可以先完成 ",[1633,3508,1658],{},[1633,3510,1661],{},"；正式分发时，再准备证书和更新发布环境。",[1629,3513,3514],{},[2143,3515,3516,3517,3519],{},"Q4：为什么自动更新不能只在 ",[1633,3518,1635],{}," 时测试？",[1629,3521,3522],{},"A：自动更新检查的是已发布的安装包和版本号，开发环境没有对应的 Release 文件，所以要用打包后的旧版本和新版本测试。",[1624,3524,3526],{"id":3525},"小练习","🧪 小练习",[1629,3528,3529,3532,3533,3535],{},[2143,3530,3531],{},"练习一","：在 ",[1633,3534,1648],{}," 中把应用名称改成自己的名称。",[1629,3537,3538,3532,3541,3543],{},[2143,3539,3540],{},"练习二",[1633,3542,1652],{}," 中只保留当前系统对应的一个 maker，并执行：",[1764,3545,3547],{"className":1766,"code":3546,"language":1768,"meta":1769,"style":1769},"npm run package\nnpm run make\n",[1633,3548,3549,3557],{"__ignoreMap":1769},[1773,3550,3551,3553,3555],{"class":1775,"line":1776},[1773,3552,1780],{"class":1779},[1773,3554,2544],{"class":1783},[1773,3556,2547],{"class":1783},[1773,3558,3559,3561,3563],{"class":1775,"line":1793},[1773,3560,1780],{"class":1779},[1773,3562,2544],{"class":1783},[1773,3564,2580],{"class":1783},[1629,3566,3567,3568,3571],{},"观察 ",[1633,3569,3570],{},"out"," 目录中分别出现了什么产物。",[1629,3573,3574,3577,3578,3580,3581,3584],{},[2143,3575,3576],{},"练习三","：如果你有公开 GitHub 仓库，按照本文补充 ",[1633,3579,3080],{},"、Publisher 和 ",[1633,3582,3583],{},"updateElectronApp()","，先完成一次测试 Release。",[1629,3586,3587],{},"🎉 现在你已经分清了项目基本信息、Forge 打包规则、应用目录和分发文件之间的关系。",[3589,3590,3591],"style",{},"html pre.shiki code .sYGMc, html code.shiki .sYGMc{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sIEYB, html code.shiki .sIEYB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .s86vT, html code.shiki .s86vT{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .s50WR, html code.shiki .s50WR{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .sd2Uz, html code.shiki .sd2Uz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .sndM8, html code.shiki .sndM8{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .swgpB, html code.shiki .swgpB{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}",{"title":1769,"searchDepth":1793,"depth":1793,"links":3593},[3594,3595,3596,3597,3598,3604,3605,3609,3616,3617,3618],{"id":1626,"depth":1793,"text":1627},{"id":1671,"depth":1793,"text":1672},{"id":1746,"depth":1793,"text":1747},{"id":1925,"depth":1793,"text":1926},{"id":2160,"depth":1793,"text":2161,"children":3599},[3600,3602],{"id":2385,"depth":1848,"text":3601},"1. packagerConfig.icon",{"id":2447,"depth":1848,"text":3603},"2. makers",{"id":2528,"depth":1793,"text":2529},{"id":2602,"depth":1793,"text":2603,"children":3606},[3607,3608],{"id":2653,"depth":1848,"text":2654},{"id":2836,"depth":1848,"text":2837},{"id":2994,"depth":1793,"text":2995,"children":3610},[3611,3612,3613,3614,3615],{"id":3019,"depth":1848,"text":3020},{"id":3060,"depth":1848,"text":3061},{"id":3138,"depth":1848,"text":3139},{"id":3262,"depth":1848,"text":3263},{"id":3333,"depth":1848,"text":3334},{"id":3411,"depth":1793,"text":3412},{"id":3458,"depth":1793,"text":3459},{"id":3525,"depth":1793,"text":3526},"区分 package.json 和 forge.config.js 的职责，生成 Electron 应用并接入基础自动更新流程。","md",null,{},{"title":1602},{"title":1619,"description":3619},"9ThjNJqyq7",[3627,3629],{"title":1592,"path":1593,"stem":1594,"description":3628,"children":-1},"准备独立报告页面并使用 printToPDF 生成可保存的 PDF 文件。",{"title":1606,"path":1607,"stem":1608,"description":3630,"children":-1},"从准备证书到验证安装包，完成 macOS 和 Windows Electron 应用的基础签名流程。",1789632409420]