Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev #100

Merged
merged 3 commits into from
Feb 11, 2025
Merged

Dev #100

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 -r requirements.txt pyinstaller
pip install pyinstaller requests

- 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
4 changes: 2 additions & 2 deletions diff_folder.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Author: Night-stars-1 nujj1042633805@gmail.com
Date: 2024-12-15 21:01:16
LastEditors: Night-stars-1 nujj1042633805@gmail.com
LastEditTime: 2025-02-12 00:00:45
LastEditTime: 2025-02-12 00:16:43
"""

import hashlib
Expand All @@ -23,7 +23,7 @@ def get_latest_hash():
"""
获取最新的release的hash文件
"""
response = requests.get("https://goda.srap.link/Night-stars-1/Auto_Resonance")
response = requests.get("https://api.github.com/repos/Night-stars-1/Auto_Resonance/releases/latest")
print(response.text)
result: dict = response.json()
tag_name = result.get("tag_name")
Expand Down
Loading