# Electron-Forge-Learn **Repository Path**: lemon_soda/electron-forge-learn ## Basic Information - **Project Name**: Electron-Forge-Learn - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-08-14 - **Last Updated**: 2025-11-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 无法启动的原因: 主要是因为在install的时候 node_modules/electron/ 中文件的丢失造成程序无法执行。 对比下图很明显发现少了path.txt和dist文件夹。 解决方法: // 1. pnpm install // 2. npm install -g electron-fix // 3. electron-fix start //4. pnpm start 移除package.json中下列配置 "config": { "forge": { "makers": [ { "name": "@electron-forge/maker-squirrel", "config": { "name": "local_website_app", "authors": "Your Name", "description": "Electron包装的本地网站应用" } } ], "publishers": [] } }, 安装 Windows SDK(确保 makeappx.exe 和 signtool.exe 可用) 下载 Windows SDK: https://developer.microsoft.com/en-us/windows/downloads/windows-sdk/ 安装时勾选: Windows App Certification Kit Windows SDK Signing Tools 解决pnpm make报错的问题: 把最新的7zip放到node_modules\electron-winstaller\vendor里面就可以了 但是这样打包出来无法安装,报错 ``` This is a dummyupdate.exe.Ifyou are seeing this,yourbuild did notcorrectlyreplacetheIDRUPDATE_ZIPresource. Command Line:'--install ```