Update build-windows.yml

This commit is contained in:
Eric-Terminal
2025-08-04 02:13:57 +08:00
committed by GitHub
parent 5c38c00dd8
commit c5c7b4c8d5

View File

@@ -41,7 +41,7 @@ jobs:
# --add-data: 将 config.json 文件包含到exe中 # --add-data: 将 config.json 文件包含到exe中
# --name: 指定生成的可执行文件名 # --name: 指定生成的可执行文件名
- name: Build with PyInstaller - name: Build with PyInstaller
run: pyinstaller --noconsole --onefile --name "AI-Essay-Corrector" --icon="icon.ico" --add-data "config.json;." main.py run: pyinstaller --noconsole --onefile --name "AI-Essay-Corrector" --add-data "config.json;." main.py
# 第5步将打包好的.exe上传以便在工作流页面下载 (适合测试) # 第5步将打包好的.exe上传以便在工作流页面下载 (适合测试)
- name: Upload artifact for testing - name: Upload artifact for testing
@@ -55,4 +55,4 @@ jobs:
if: startsWith(github.ref, 'refs/tags/') # 仅在创建Tag时运行此步骤 if: startsWith(github.ref, 'refs/tags/') # 仅在创建Tag时运行此步骤
uses: softprops/action-gh-release@v2 uses: softprops/action-gh-release@v2
with: with:
files: dist/AI-Essay-Corrector.exe files: dist/AI-Essay-Corrector.exe