2025-06-30 09:38:03 +08:00

44 lines
959 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# jnpf-web-eletron
本项目基于Electron通过嵌入WEB页面(非Electron+vue技术)打包V8引擎浏览器的方式解决因浏览器版本过低导致WEB项目不兼容的问题。
### 环境要求
- Node.js稳定版本
### 使用说明
#### 安装依赖
> 特别说明:因网络环境差异,下载依赖过程中可能会出现报错失败,可能需要多尝试几次
```bash
npm install --registry=https://registry.npmmirror.com
```
#### 修改配置
打开`main.js`(第20行),替换访问地址,如:
```bash
mainWindow.loadURL('https://java.jnpfsoft.com')
```
#### 应用图标修改
- 1、准备一张`600*600`的PNG图标然后分别用工具转成`ico`(用于win打包win应用)和`icns`(用于打包Mac应用)格式的图标
- 2、打开`package.json`文件(第8-9行),替换`--icon`图标名称
#### 项目发布
- 打包Win客户端
```bash
npm run build:win
```
- 打包Mac客户端
```bash
npm run build:mac
```