Skip to content

Commit

Permalink
ci: 支持增量更新
Browse files Browse the repository at this point in the history
  • Loading branch information
Night-stars-1 committed Feb 11, 2025
1 parent 2088aaf commit 8279bae
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/build_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,25 +35,25 @@ jobs:
- name: Pip Install
run: |
python -m pip install --upgrade pip
pip install pyinstaller requests
pip install -r requirements.txt pyinstaller
- name: Set VERSION
run: echo "__version__='${{ github.ref_name }}'" > version.py

# - name: Generate program
# shell: pwsh
# run: |
# $SITE_PACKAGES = python -c "import site; print(site.getsitepackages()[0])"
# pyinstaller -D --distpath .\dist\ -i app\resource\images\logo.ico -n HeiYue gui.py -y -w --add-data "$SITE_PACKAGES\lib\site-packages\cnocr\label_cn.txt;cnocr" --add-data "$SITE_PACKAGES\lib\site-packages\cnocr\label_number.txt;cnocr" --add-data "$SITE_PACKAGES\lib\site-packages\onnxruntime\capi\onnxruntime_providers_shared.dll;onnxruntime\capi" --hidden-import=scipy.special._cdflib
# pyinstaller -F --distpath .\dist\updater -i app\resource\images\logo.ico -n "HeiYue Updater" updater.py -y
- name: Generate program
shell: pwsh
run: |
$SITE_PACKAGES = python -c "import site; print(site.getsitepackages()[0])"
pyinstaller -D --distpath .\dist\ -i app\resource\images\logo.ico -n HeiYue gui.py -y -w --add-data "$SITE_PACKAGES\lib\site-packages\cnocr\label_cn.txt;cnocr" --add-data "$SITE_PACKAGES\lib\site-packages\cnocr\label_number.txt;cnocr" --add-data "$SITE_PACKAGES\lib\site-packages\onnxruntime\capi\onnxruntime_providers_shared.dll;onnxruntime\capi" --hidden-import=scipy.special._cdflib
pyinstaller -F --distpath .\dist\updater -i app\resource\images\logo.ico -n "HeiYue Updater" updater.py -y
# - name: Move assets to dist directory
# run: |
# Copy-Item -Path ".\actions\" -Destination ".\dist\heiyue\actions\" -Recurse -Force
# Copy-Item -Path ".\resources\" -Destination ".\dist\heiyue\resources\" -Recurse -Force
# Copy-Item -Path ".\app\resource\" -Destination ".\dist\heiyue\app\resource\" -Recurse -Force
# Copy-Item -Path ".\README.md" -Destination ".\dist\heiyue\" -Force
# Copy-Item -Path ".\dist\updater\HeiYue Updater.exe" -Destination ".\dist\heiyue\HeiYue Updater.exe" -Recurse -Force
- name: Move assets to dist directory
run: |
Copy-Item -Path ".\actions\" -Destination ".\dist\heiyue\actions\" -Recurse -Force
Copy-Item -Path ".\resources\" -Destination ".\dist\heiyue\resources\" -Recurse -Force
Copy-Item -Path ".\app\resource\" -Destination ".\dist\heiyue\app\resource\" -Recurse -Force
Copy-Item -Path ".\README.md" -Destination ".\dist\heiyue\" -Force
Copy-Item -Path ".\dist\updater\HeiYue Updater.exe" -Destination ".\dist\heiyue\HeiYue Updater.exe" -Recurse -Force
- name: Make increment zip
id: make_increment_zip
Expand Down

0 comments on commit 8279bae

Please sign in to comment.