chore: update release workflow to download yt-dlp binaries for Windows and Linux

This commit is contained in:
Nexmoe
2025-10-24 22:03:48 +08:00
parent 4caf8efa72
commit e8cd89d7e4

View File

@@ -30,8 +30,18 @@ jobs:
- name: Install Dependencies
run: pnpm install
- name: Type check
run: pnpm run typecheck
- name: Download yt-dlp binaries
run: |
# Download yt-dlp.exe for Windows
curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp.exe -o resources/yt-dlp.exe
# Download yt-dlp for macOS (for cross-platform builds)
# curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp_macos -o resources/yt-dlp_macos
# chmod +x resources/yt-dlp_macos
# Download yt-dlp for Linux (for cross-platform builds)
curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -o resources/yt-dlp_linux
chmod +x resources/yt-dlp_linux
- name: Lint and format check
run: pnpm run check