Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Detritalw authored Feb 16, 2025
1 parent d0760af commit b50cbb7
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ jobs:
python -m pip install --upgrade pip
pip install pyinstaller
- name: 安装 pkgconfiglite
run: |
- name: 打包应用程序
run: |
pyinstaller --onefile --name=Bloret-Launcher main.py
Expand All @@ -44,33 +41,25 @@ jobs:
- name: 创建 zip 包含构建产物
run: |
cd output
zip -r Bloret-Launcher.zip Bloret-Launcher.exe cmcl icons ui config.ini
zip -r Bloret-Launcher.zip Bloret-Launcher cmcl icons ui config.ini
- name: 上传构建产物 Bloret-Launcher.zip
uses: actions/upload-artifact@v4
with:
name: Bloret-Launcher.zip
path: output/Bloret-Launcher.zip

- name: 上传构建产物 Bloret-Launcher.exe
uses: actions/upload-artifact@v4
with:
name: Bloret-Launcher.exe
path: Bloret-Launcher.exe

- name: 创建包含其他文件夹的目录
run: |
mkdir -p output
cp main.py output/
cp Bloret-Launcher.py output/
- name: 创建 zip 包含构建产物
run: |
cd output
zip -r Bloret-Launcher-code.zip Bloret-Launcher.py main.py cmcl icons ui config.ini
zip -r Bloret-Launcher-code.zip main.py cmcl icons ui config.ini
- name: 上传部分源码
uses: actions/upload-artifact@v4
with:
name: Bloret-Launcher-code.zip
path: Bloret-Launcher-code.zip
path: output/Bloret-Launcher-code.zip

0 comments on commit b50cbb7

Please sign in to comment.