diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1a72d37..c73fed1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -34,15 +34,24 @@ jobs: mkdir -p "$GITHUB_WORKSPACE/dist/windows/bin" # yt-dlp - curl -fL -o "$GITHUB_WORKSPACE/dist/windows/bin/yt-dlp.exe" https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp.exe + curl -fL \ + -H "User-Agent: github-actions" \ + -o "$GITHUB_WORKSPACE/dist/windows/bin/yt-dlp.exe" \ + https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp.exe # FFmpeg Windows static - curl -fL -o "$GITHUB_WORKSPACE/dist/windows/ffmpeg.zip" https://www.gyan.dev/ffmpeg/builds/ffmpeg-release-essentials.zip + curl -fL \ + -H "User-Agent: github-actions" \ + -o "$GITHUB_WORKSPACE/dist/windows/ffmpeg.zip" \ + https://www.gyan.dev/ffmpeg/builds/ffmpeg-release-essentials.zip unzip -q "$GITHUB_WORKSPACE/dist/windows/ffmpeg.zip" -d "$GITHUB_WORKSPACE/dist/windows/ffmpeg_temp" mv $(find "$GITHUB_WORKSPACE/dist/windows/ffmpeg_temp" -name ffmpeg.exe | head -n 1) "$GITHUB_WORKSPACE/dist/windows/bin/ffmpeg.exe" # aria2c Windows static - curl -fL -o "$GITHUB_WORKSPACE/dist/windows/aria2c.zip" https://github.com/aria2/aria2/releases/download/release-1.37.0/aria2-1.37.0-win-64bit-build1.zip + curl -fL \ + -H "User-Agent: github-actions" \ + -o "$GITHUB_WORKSPACE/dist/windows/aria2c.zip" \ + https://github.com/aria2/aria2/releases/download/release-1.37.0/aria2-1.37.0-win-64bit-build1.zip unzip "$GITHUB_WORKSPACE/dist/windows/aria2c.zip" -d "$GITHUB_WORKSPACE/dist/windows/" mv "$GITHUB_WORKSPACE/dist/windows/aria2-1.37.0-win-64bit-build1/aria2c.exe" "$GITHUB_WORKSPACE/dist/windows/bin/aria2c.exe" @@ -95,12 +104,18 @@ jobs: - name: Download yt-dlp run: | - curl -fL -o "$GITHUB_WORKSPACE/dist/linux/bin/yt-dlp" https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp_linux + curl -fL \ + -H "User-Agent: github-actions" \ + -o "$GITHUB_WORKSPACE/dist/linux/bin/yt-dlp" \ + https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp_linux chmod +x "$GITHUB_WORKSPACE/dist/linux/bin/yt-dlp" - name: Download FFmpeg static run: | - curl -fL -o "$GITHUB_WORKSPACE/dist/linux/ffmpeg.tar.xz" https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-amd64-static.tar.xz + curl -fL \ + -H "User-Agent: github-actions" \ + -o "$GITHUB_WORKSPACE/dist/linux/ffmpeg.tar.xz" \ + https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-amd64-static.tar.xz mkdir -p "$GITHUB_WORKSPACE/dist/linux/ffmpeg_temp" tar -xf "$GITHUB_WORKSPACE/dist/linux/ffmpeg.tar.xz" -C "$GITHUB_WORKSPACE/dist/linux/ffmpeg_temp" --strip-components=1 mv "$GITHUB_WORKSPACE/dist/linux/ffmpeg_temp/ffmpeg" "$GITHUB_WORKSPACE/dist/linux/bin/ffmpeg"