docs: 更正 README 内容

This commit is contained in:
JoeanAmier
2024-08-07 22:27:55 +08:00
parent 7cedd8d4b8
commit 169128de8d
4 changed files with 22 additions and 15 deletions

View File

@@ -3,7 +3,7 @@ name: Build and Push Docker Image
on:
release:
types: [published]
workflow_dispatch: # 允许手动触发工作流
workflow_dispatch:
jobs:
publish-docker:

View File

@@ -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