优化bug
This commit is contained in:
@@ -10,10 +10,10 @@
|
||||
|
||||
```bash
|
||||
# 1. 安装依赖(只需一次)
|
||||
npm install
|
||||
yarn install
|
||||
|
||||
# 2. 启动程序
|
||||
npm start
|
||||
yarn start
|
||||
```
|
||||
|
||||
> **前置要求**:需要安装 [Node.js](https://nodejs.org/)(推荐 16 或更高版本)
|
||||
@@ -26,13 +26,13 @@ npm start
|
||||
|
||||
```bash
|
||||
# Windows 系统
|
||||
npm run release:win
|
||||
yarn release:win
|
||||
|
||||
# Mac 系统
|
||||
npm run release:mac
|
||||
yarn release:mac
|
||||
|
||||
# Linux 系统
|
||||
npm run release:linux
|
||||
yarn release:linux
|
||||
```
|
||||
|
||||
✅ **自动完成**:加密 → 测试 → 清理 → 打包
|
||||
@@ -45,8 +45,8 @@ npm run release:linux
|
||||
#### 步骤 1:加密代码
|
||||
|
||||
```bash
|
||||
npm run encrypt:win # Windows
|
||||
npm run encrypt:linux # Mac/Linux
|
||||
yarn encrypt:win # Windows
|
||||
yarn encrypt:linux # Mac/Linux
|
||||
```
|
||||
|
||||
✅ 生成 `.jsc` 加密文件(自动覆盖旧文件)
|
||||
@@ -54,7 +54,7 @@ npm run encrypt:linux # Mac/Linux
|
||||
#### 步骤 2:测试
|
||||
|
||||
```bash
|
||||
npm start
|
||||
yarn start
|
||||
```
|
||||
|
||||
✅ 确认程序正常运行,无报错
|
||||
@@ -62,7 +62,7 @@ npm start
|
||||
#### 步骤 3:清理源文件
|
||||
|
||||
```bash
|
||||
npm run cleanup
|
||||
yarn cleanup
|
||||
```
|
||||
|
||||
✅ 删除 `.js` 源文件,自动备份到 `.backup` 文件夹
|
||||
@@ -70,9 +70,9 @@ npm run cleanup
|
||||
#### 步骤 4:打包
|
||||
|
||||
```bash
|
||||
npm run build:win # Windows
|
||||
npm run build:mac # Mac
|
||||
npm run build:linux # Linux
|
||||
yarn build:win # Windows
|
||||
yarn build:mac # Mac
|
||||
yarn build:linux # Linux
|
||||
```
|
||||
|
||||
✅ 生成安装包到 `build` 文件夹
|
||||
@@ -84,7 +84,7 @@ npm run build:linux # Linux
|
||||
### 恢复源文件
|
||||
|
||||
```bash
|
||||
npm run restore
|
||||
yarn restore
|
||||
```
|
||||
|
||||
> 从 `.backup` 文件夹恢复所有源文件(误删除时使用)
|
||||
@@ -92,7 +92,7 @@ npm run restore
|
||||
### 清理加密文件
|
||||
|
||||
```bash
|
||||
npm run cleanup:jsc
|
||||
yarn cleanup:jsc
|
||||
```
|
||||
|
||||
> 删除所有 `.jsc` 文件(重新加密前使用)
|
||||
@@ -113,7 +113,7 @@ npm run cleanup:jsc
|
||||
}
|
||||
```
|
||||
|
||||
然后重新运行 `npm run encrypt:win`
|
||||
然后重新运行 `yarn encrypt:win`
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user