Support two-word naming

This commit is contained in:
Tw93
2025-08-05 15:37:30 +08:00
parent d8f1db214c
commit 2af3805b93
5 changed files with 26 additions and 6 deletions

9
bin/README.md vendored
View File

@@ -62,8 +62,17 @@ Various options are available for customization. You can pass corresponding argu
Specify the application name. If not provided, you will be prompted to enter it. It is recommended to use English.
**Note**: Also supports multiple words with automatic platform-specific handling:
- **Windows/macOS**: Preserves spaces and case (e.g., `"Google Translate"`)
- **Linux**: Converts to lowercase with hyphens (e.g., `"google-translate"`)
```shell
--name <string>
--name MyApp
# Multiple words (if needed):
--name "Google Translate"
```
#### [icon]

11
bin/README_CN.md vendored
View File

@@ -60,10 +60,19 @@ pake [url] [options]
#### [name]
指定应用程序的名称,如果在输入时未指定,系统会提示您输入,建议使用单个英文名称,不要出现下划线或者中文
指定应用程序的名称,如果未指定,系统会提示您输入,建议使用英文单词
**注意**: 也支持多个单词,会自动处理不同平台的命名规范:
- **Windows/macOS**: 保持空格和大小写(如 `"Google Translate"`
- **Linux**: 转换为小写并用连字符连接(如 `"google-translate"`
```shell
--name <string>
--name MyApp
# 多个单词(如需要):
--name "Google Translate"
```
#### [icon]