Skip to content

Commit

Permalink
fix build, deploy yt-dlp
Browse files Browse the repository at this point in the history
  • Loading branch information
martinrotter committed Nov 28, 2023
1 parent baf5b35 commit 6e463cb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
12 changes: 10 additions & 2 deletions resources/scripts/github-actions/build-windows.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,13 @@ $zlib_version = "1.3"
$zlib_link = "https://github.com/madler/zlib/archive/refs/tags/v$zlib_version.zip"
$zlib_output = "zlib.zip"

$libmpv_link = "https://deac-fra.dl.sourceforge.net/project/mpv-player-windows/64bit-v3/mpv-x86_64-v3-20231126-git-6898d57.7z"
$libmpv_link = "https://deac-fra.dl.sourceforge.net/project/mpv-player-windows/libmpv/mpv-dev-x86_64-v3-20231112-git-7cab30c.7z"
$libmpv_output = "mpv.zip"

$ytdlp_version = "2023.11.16"
$ytdlp_link = "https://github.com/yt-dlp/yt-dlp/releases/download/$ytdlp_version/yt-dlp.exe"
$libmpv_output = "yt-dlp.exe"

Invoke-WebRequest -Uri "$maria_link" -OutFile "$maria_output"
& ".\resources\scripts\7za\7za.exe" x "$maria_output"

Expand All @@ -64,9 +68,12 @@ Invoke-WebRequest -Uri "$zlib_link" -OutFile "$zlib_output"
Invoke-WebRequest -Uri "$libmpv_link" -OutFile "$libmpv_output"
& ".\resources\scripts\7za\7za.exe" x "$libmpv_output" -ompv

Invoke-WebRequest -Uri "$ytdlp_link" -OutFile "$libmpv_output"

$cmake_path = "$old_pwd\cmake-$cmake_version-windows-x86_64\bin\cmake.exe"
$zlib_path = "$old_pwd\zlib-$zlib_version"
$libmpv_path = "$old_pwd\mpv"
$ytdlp_path = "$old_pwd\$libmpv_output"

# Download Qt itself.
$qt_path = "$old_pwd\qt"
Expand Down Expand Up @@ -157,8 +164,9 @@ if ($git_tag -eq "devbuild") {
}

if ($use_webengine -eq "ON") {
# Copy libmpv.
# Copy libmpv and yt-dlp.
Copy-Item -Path "$libmpv_path\libmpv*.dll" -Destination ".\app\"
Copy-Item -Path "$ytdlp_path" -Destination ".\app\"

$packagebase = "rssguard-${git_tag}-${git_revision}-win"
}
Expand Down
2 changes: 2 additions & 0 deletions src/librssguard/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -551,6 +551,8 @@ elseif(ENABLE_MEDIAPLAYER_LIBMPV)
NO_CACHE
REQUIRED
)

message(STATUS "Found libmpv: ${LibMPV_LIBRARIES}.")
endif()

if(NO_LITE)
Expand Down

0 comments on commit 6e463cb

Please sign in to comment.