From b6dc09a7e3a4481a9ed113dcd6413e2ac6beb15a Mon Sep 17 00:00:00 2001 From: Nexmoe <16796652+nexmoe@users.noreply.github.com> Date: Thu, 23 Oct 2025 22:25:37 +0800 Subject: [PATCH] chore: enhance release workflow to download yt-dlp binaries for cross-platform support --- .github/workflows/release.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9723918..5b82890 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -30,6 +30,22 @@ jobs: - name: Install Dependencies run: pnpm install + - name: Download yt-dlp binaries + run: | + # Create resources directory if it doesn't exist + mkdir -p resources + + # 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: Type check run: pnpm run typecheck