diff --git a/.github/workflows/build_release.yml b/.github/workflows/build_release.yml index f5bfe39..1430536 100644 --- a/.github/workflows/build_release.yml +++ b/.github/workflows/build_release.yml @@ -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 diff --git a/diff_folder.py b/diff_folder.py index 7617fcf..0767ec8 100644 --- a/diff_folder.py +++ b/diff_folder.py @@ -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 @@ -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")