aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.github/workflows/pack.yml
diff options
context:
space:
mode:
author简律纯 <i@jyunko.cn>2023-07-04 11:37:34 +0800
committerGitHub <noreply@github.com>2023-07-04 11:37:34 +0800
commit89d0f4b926a6de3ddf8cce448e6aee22fa801de5 (patch)
tree911afa3beeec97b458762544f0d8e009b0ceb75f /.github/workflows/pack.yml
parent2913ed13e33efc895cf6612dcbee639b99c0cedd (diff)
downloadinfini-89d0f4b926a6de3ddf8cce448e6aee22fa801de5.tar.gz
infini-89d0f4b926a6de3ddf8cce448e6aee22fa801de5.zip
Update pack.yml
Diffstat (limited to '.github/workflows/pack.yml')
-rw-r--r--.github/workflows/pack.yml38
1 files changed, 24 insertions, 14 deletions
diff --git a/.github/workflows/pack.yml b/.github/workflows/pack.yml
index e9fd3a5f..a5a1c0e2 100644
--- a/.github/workflows/pack.yml
+++ b/.github/workflows/pack.yml
@@ -17,20 +17,30 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: 3.9
-
- - name: Checkout code
- uses: actions/checkout@v2
-
+ cache: pip
+ architecture: x64
- name: Install dependencies
- run: pip install pyinstaller
-
- - name: Build executable
run: |
- cd HydroRollCore # 进入HydroRollCore目录
- pyinstaller --onefile __init__.py
-
- - name: Upload artifact
- uses: actions/upload-artifact@v2
+ python -m pip install --upgrade pip
+ python -m pip install -r ./requirements_win.txt
+ - name: Run packing
+ run: |
+ pyinstaller ./main.spec
+ - name: Run artifact
+ run: |
+ mkdir HydroRollCore-Win
+ cp ./dist/main.exe ./HydroRollCore-win/HydroRollCore.exe
+ - name: Packing HydroRollCore-Win
+ uses: actions/upload-artifact@v3
+ with:
+ name: HydroRollCore-Win-old-origin
+ path: ./HydroRollCore-Win
+ - name: Ready for Packing
+ run: |
+ mkdir ./HydroRollCore-Win/lib
+ curl -L https://github.com/Mrs4s/go-cqhttp/releases/latest/download/go-cqhttp_windows_amd64.exe -o ./HydroRollCore-Win/lib/go-cqhttp.exe
+ - name: Packing HydroRollCore-Win-with-lib
+ uses: actions/upload-artifact@v3
with:
- name: executable
- path: HydroRollCore.exe
+ name: HydroRollCore-Win-old
+ path: ./HydroRollCore-Win