# electron-demo **Repository Path**: cjuner/electron-demo ## Basic Information - **Project Name**: electron-demo - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-01-06 - **Last Updated**: 2026-01-08 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 依赖安装 ```bash # 安装 Electron npm install electron --save-dev # 安装 Electron-Builder npm install electron-builder --save-dev ``` 打包方法 ```bash # 打包所有平台(根据当前操作系统) npm run build # 仅打包 Windows npm run build:win # 仅打包 macOS npm run build:mac # 仅打包 Linux npm run build:linux # 打包指定架构(64位) npx electron-builder --win --x64 # 打包所有架构 npx electron-builder --win --ia32 --x64 # 不进行代码压缩(便于调试) npx electron-builder --win --dir ```