nexfep 0.3.2 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README-CN.md +22 -3
- package/README.md +22 -3
- package/package.json +1 -1
package/README-CN.md
CHANGED
|
@@ -464,15 +464,25 @@ if (window.isNexfepLoadDone) {
|
|
|
464
464
|
|
|
465
465
|
## CLI
|
|
466
466
|
|
|
467
|
+
### `help`
|
|
468
|
+
|
|
469
|
+
使用 `help` 命令获取可用命令列表:
|
|
470
|
+
|
|
471
|
+
```bash
|
|
472
|
+
npx nexfep help
|
|
473
|
+
```
|
|
474
|
+
|
|
475
|
+
### `build`
|
|
476
|
+
|
|
467
477
|
Nexfep 提供命令行工具,用于将应用打包为独立可执行文件。
|
|
468
478
|
|
|
469
|
-
|
|
479
|
+
#### 用法
|
|
470
480
|
|
|
471
481
|
```bash
|
|
472
482
|
npx nexfep build [options]
|
|
473
483
|
```
|
|
474
484
|
|
|
475
|
-
|
|
485
|
+
#### 选项
|
|
476
486
|
|
|
477
487
|
| 选项 | 说明 |
|
|
478
488
|
|------|------|
|
|
@@ -484,8 +494,9 @@ npx nexfep build [options]
|
|
|
484
494
|
| `-r, --reinstall` | 构建前仅重新安装生产依赖 |
|
|
485
495
|
| `-s, --skip-clean` | 跳过清理旧的构建文件 |
|
|
486
496
|
| `-u, --upx <level>` | 使用 UPX 压缩可执行文件,级别 0-9(默认:0) |
|
|
497
|
+
| `-m, --meta, --metadata <file>` | 元数据文件路径(默认:无) |
|
|
487
498
|
|
|
488
|
-
|
|
499
|
+
#### 示例
|
|
489
500
|
|
|
490
501
|
```bash
|
|
491
502
|
# 使用 package.json 默认配置构建
|
|
@@ -506,6 +517,14 @@ nexfep build -u 7
|
|
|
506
517
|
|
|
507
518
|
该命令使用 [nexfpack](https://github.com/nexfteam/Nexfpack) 将应用打包为独立可执行文件。
|
|
508
519
|
|
|
520
|
+
对于 `metadata` 参数,可以参考 [Nexfpack 文档](https://github.com/nexfteam/Nexfpack/blob/main/README-CN.md#%E5%85%83%E6%95%B0%E6%8D%AE)。
|
|
521
|
+
|
|
522
|
+
注意不要包括外层的 `metadata` 字段,直接包含内部字段即可,例如:
|
|
523
|
+
|
|
524
|
+
```json
|
|
525
|
+
{ "1033": { "FileVersion": ... } }
|
|
526
|
+
```
|
|
527
|
+
|
|
509
528
|
## API
|
|
510
529
|
|
|
511
530
|
### Application
|
package/README.md
CHANGED
|
@@ -464,15 +464,25 @@ if (window.isNexfepLoadDone) {
|
|
|
464
464
|
|
|
465
465
|
## CLI
|
|
466
466
|
|
|
467
|
+
### `help`
|
|
468
|
+
|
|
469
|
+
Use the `help` command to get a list of available commands:
|
|
470
|
+
|
|
471
|
+
```bash
|
|
472
|
+
npx nexfep help
|
|
473
|
+
```
|
|
474
|
+
|
|
475
|
+
### `build`
|
|
476
|
+
|
|
467
477
|
Nexfep provides a command-line tool for building applications into standalone executables.
|
|
468
478
|
|
|
469
|
-
|
|
479
|
+
#### Usage
|
|
470
480
|
|
|
471
481
|
```bash
|
|
472
482
|
npx nexfep build [options]
|
|
473
483
|
```
|
|
474
484
|
|
|
475
|
-
|
|
485
|
+
#### Options
|
|
476
486
|
|
|
477
487
|
| Option | Description |
|
|
478
488
|
|--------|-------------|
|
|
@@ -484,8 +494,9 @@ npx nexfep build [options]
|
|
|
484
494
|
| `-r, --reinstall` | Reinstall production dependencies only before building |
|
|
485
495
|
| `-s, --skip-clean` | Skip cleaning old build files before building |
|
|
486
496
|
| `-u, --upx <level>` | Use UPX to compress the executable, level 0-9 (default: 0) |
|
|
497
|
+
| `-m, --meta, --metadata <file>` | Metadata file path (default: none) |
|
|
487
498
|
|
|
488
|
-
|
|
499
|
+
#### Examples
|
|
489
500
|
|
|
490
501
|
```bash
|
|
491
502
|
# Build using defaults from package.json
|
|
@@ -506,6 +517,14 @@ nexfep build -u 7
|
|
|
506
517
|
|
|
507
518
|
This command uses [nexfpack](https://github.com/nexfteam/Nexfpack) to package your application into a standalone executable.
|
|
508
519
|
|
|
520
|
+
For `metadata` parameter, you can refer to [Nexfpack documentation](https://github.com/nexfteam/Nexfpack#Metadata) for details.
|
|
521
|
+
|
|
522
|
+
Please do not include the outer `metadata` field, just the internal fields. Like this:
|
|
523
|
+
|
|
524
|
+
```json
|
|
525
|
+
{ "1033": { "FileVersion": ... } }
|
|
526
|
+
```
|
|
527
|
+
|
|
509
528
|
## API
|
|
510
529
|
|
|
511
530
|
### Application
|