From 7897caa3c200428cca88ceff1a0c76b53391278b Mon Sep 17 00:00:00 2001 From: Quan Date: Tue, 6 Jan 2026 23:50:08 +0800 Subject: [PATCH] =?UTF-8?q?build(workflow):=20=E6=9B=B4=E6=96=B0=20PyInsta?= =?UTF-8?q?ller=20=E6=9E=84=E5=BB=BA=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/Close_Stale_Issues_and_PRs.yaml | 2 +- .github/workflows/Manually_build_executable_programs.yml | 4 ++-- .github/workflows/Release_build_executable_program.yml | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/Close_Stale_Issues_and_PRs.yaml b/.github/workflows/Close_Stale_Issues_and_PRs.yaml index fc8c89d..5c7053d 100644 --- a/.github/workflows/Close_Stale_Issues_and_PRs.yaml +++ b/.github/workflows/Close_Stale_Issues_and_PRs.yaml @@ -1,7 +1,7 @@ name: "自动管理过时的问题和PR" on: schedule: - - cron: "0 0 */4 * *" + - cron: "0 0 * * 6" workflow_dispatch: permissions: diff --git a/.github/workflows/Manually_build_executable_programs.yml b/.github/workflows/Manually_build_executable_programs.yml index cf33666..b63c98e 100644 --- a/.github/workflows/Manually_build_executable_programs.yml +++ b/.github/workflows/Manually_build_executable_programs.yml @@ -30,14 +30,14 @@ jobs: if: runner.os == 'Windows' run: | echo "DATE=$(Get-Date -Format 'yyyyMMdd')" >> $env:GITHUB_ENV - pyinstaller --icon=./static/XHS-Downloader.ico --add-data "static:static" --add-data "locale:locale" --copy-metadata fastmcp --runtime-hook ./source/expansion/pyi_rth_beartype.py main.py + pyinstaller --icon=./static/XHS-Downloader.ico --add-data "static:static" --add-data "locale:locale" --collect-all fastmcp --runtime-hook ./source/expansion/pyi_rth_beartype.py main.py shell: pwsh - name: 构建 Mac 可执行文件 if: runner.os == 'macOS' run: | echo "DATE=$(date +'%Y%m%d')" >> $GITHUB_ENV - pyinstaller --icon=./static/XHS-Downloader.icns --add-data "static:static" --add-data "locale:locale" --copy-metadata fastmcp --runtime-hook ./source/expansion/pyi_rth_beartype.py main.py + pyinstaller --icon=./static/XHS-Downloader.icns --add-data "static:static" --add-data "locale:locale" --collect-all fastmcp --runtime-hook ./source/expansion/pyi_rth_beartype.py main.py - name: 上传文件 uses: actions/upload-artifact@v4 diff --git a/.github/workflows/Release_build_executable_program.yml b/.github/workflows/Release_build_executable_program.yml index bd21d5c..c385a60 100644 --- a/.github/workflows/Release_build_executable_program.yml +++ b/.github/workflows/Release_build_executable_program.yml @@ -34,13 +34,13 @@ jobs: - name: 构建 Win 可执行文件 if: runner.os == 'Windows' run: | - pyinstaller --icon=./static/XHS-Downloader.ico --add-data "static:static" --add-data "locale:locale" --copy-metadata fastmcp --runtime-hook ./source/expansion/pyi_rth_beartype.py main.py + pyinstaller --icon=./static/XHS-Downloader.ico --add-data "static:static" --add-data "locale:locale" --collect-all fastmcp --runtime-hook ./source/expansion/pyi_rth_beartype.py main.py shell: pwsh - name: 构建 Mac 可执行文件 if: runner.os == 'macOS' run: | - pyinstaller --icon=./static/XHS-Downloader.icns --add-data "static:static" --add-data "locale:locale" --copy-metadata fastmcp --runtime-hook ./source/expansion/pyi_rth_beartype.py main.py + pyinstaller --icon=./static/XHS-Downloader.icns --add-data "static:static" --add-data "locale:locale" --collect-all fastmcp --runtime-hook ./source/expansion/pyi_rth_beartype.py main.py - name: 创建压缩包 run: |