From 169128de8d2c802fe6a3da25d42ccff7a0ae813c Mon Sep 17 00:00:00 2001 From: JoeanAmier Date: Wed, 7 Aug 2024 22:27:55 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E6=9B=B4=E6=AD=A3=20README=20=E5=86=85?= =?UTF-8?q?=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/docker-image.yml | 2 +- .github/workflows/executable_build.yml | 15 +++++++++------ README.md | 10 ++++++---- README_EN.md | 10 ++++++---- 4 files changed, 22 insertions(+), 15 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 8928912..3f648ad 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -3,7 +3,7 @@ name: Build and Push Docker Image on: release: types: [published] - workflow_dispatch: # 允许手动触发工作流 + workflow_dispatch: jobs: publish-docker: diff --git a/.github/workflows/executable_build.yml b/.github/workflows/executable_build.yml index 20b0f62..457d24c 100644 --- a/.github/workflows/executable_build.yml +++ b/.github/workflows/executable_build.yml @@ -9,7 +9,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-latest, macos-latest, windows-latest] + os: [macos-latest, windows-latest] python-version: [3.12] steps: @@ -28,12 +28,15 @@ jobs: pip install pyinstaller - name: 构建可执行文件 + if: runner.os == 'Windows' run: | - if [ "$RUNNER_OS" = "Windows" ]; then - pyinstaller --icon=./static/XHS-Downloader.ico --add-data "static;static" --add-data "locale;locale" .\main.py - else - pyinstaller --icon=./static/XHS-Downloader.ico --add-data "static:static" --add-data "locale:locale" main.py - fi + pyinstaller --icon=./static/XHS-Downloader.ico --add-data "static;static" --add-data "locale;locale" .\main.py + shell: pwsh + + - name: Build executable on macOS + if: runner.os == 'macOS' + run: | + pyinstaller --icon=./static/XHS-Downloader.ico --add-data "static:static" --add-data "locale:locale" main.py - name: 上传文件 uses: actions/upload-artifact@v4 diff --git a/README.md b/README.md index cc6babc..ea9439f 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,7 @@
  • ✅ 从浏览器读取 Cookie
  • ✅ 自定义文件名称格式
  • ✅ 支持 API 调用功能
  • +
  • ✅ 支持文件断点续传下载