Skip to content

Commit 5460dfc

Browse files
committed
[重构Windows开发环境脚本并增强打包工具]: 优化项目结构、增强打包脚本及更新文档
- **脚本重构**: 将Windows开发环境设置脚本从`scripts/windows/setVsDev.ps1`重命名为`packaging/windows/Enter-VsDevShell.ps1`,增强错误处理和版本兼容性 - **文档更新**: 全面重写README文档,增加英文版本支持,完善示例说明和截图展示 - **打包工具优化**: 重构upload.py和utils.py,支持分块上传和进度显示,改进错误处理和日志记录 - **工作流适配**: 更新GitHub Actions工作流文件,使用新的开发环境脚本路径 - **跨平台支持**: 增强Bootstrap示例的说明,详细描述Windows/macOS/Linux的开机自启动实现机制
1 parent e632ed2 commit 5460dfc

7 files changed

Lines changed: 527 additions & 305 deletions

File tree

.github/workflows/cmake.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
if: startsWith(matrix.os, 'windows')
4848
shell: pwsh
4949
run: |
50-
.\scripts\windows\setVsDev.ps1
50+
.\packaging\windows\Enter-VsDevShell.ps1
5151
cmake `
5252
-S . `
5353
-B ./build `

.github/workflows/qmake.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
if: startsWith(matrix.os, 'windows')
5353
shell: pwsh
5454
run: |
55-
..\scripts\windows\setVsDev.ps1
55+
..\packaging\windows\Enter-VsDevShell.ps1
5656
& qmake ./../.
5757
& jom
5858
working-directory: build

README.md

Lines changed: 216 additions & 133 deletions
Large diffs are not rendered by default.

packaging/upload.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,26 +79,26 @@ def upload_platform(platform_key: str) -> None:
7979

8080
# 生成 update.json
8181
json_path = os.path.join(RELEASES_PATH, "update.json")
82-
utils.generate_json(VERSION, dst_path, dst_name, json_path)
82+
utils.write_json_describe(VERSION, dst_path, dst_name, json_path)
8383

8484
# 上传主安装包
85-
utils.sftp_upload_file(
85+
utils.upload_sftp(
8686
SFTP_SERVER,
8787
SFTP_PORT,
8888
SFTP_USER,
8989
SFTP_PWD,
90-
dst_path,
9190
f"{cfg['remote']}/{dst_name}",
91+
dst_path,
9292
)
9393

9494
# 上传 update.json
95-
utils.sftp_upload_file(
95+
utils.upload_sftp(
9696
SFTP_SERVER,
9797
SFTP_PORT,
9898
SFTP_USER,
9999
SFTP_PWD,
100-
json_path,
101100
f"{cfg['remote']}/update.json",
101+
json_path,
102102
)
103103

104104
print(f"[{platform_key}] 上传完成 ✔")

0 commit comments

Comments
 (0)