# electron_vite **Repository Path**: JiaChenHuang/electron_vite ## Basic Information - **Project Name**: electron_vite - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: feature - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-11-01 - **Last Updated**: 2023-12-08 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # electron-app 基于 `Vue` + `Vite` 的 `Electron` 应用 ## 环境准备 设置 `npm` OR `yarn` 镜像为国内淘宝镜像 ```bash npm config set registry https://registry.npmmirror.com ``` 查看镜像地址 ```bash npm config get registry ``` 设置 `Electron` 镜像源地址 ```bash npm config set electron_mirror=https://npmmirror.com/mirrors/electron/ ``` 如果包管理工具使用的是 `yarn` ,上面的命令把 `npm` 直接换成 `yarn` 即可 ## 项目设置 ### 本地开发 ```bash # 安装依赖 npm install # 启动服务 npm run dev ``` ### 打包发布 ```bash # For windows $ npm run build:win # For macOS $ npm run build:mac # For Linux $ npm run build:linux ```