Improvements to ffmpeg decoders build script (#1110)

## Description
A few improvements to the ffmpeg decoder & mpv build scripts. Mainly
changes the dependency fetching so the scripts are more idempotent,
though some rebuilds still always occur.

### Related issues
Related to
https://github.com/damontecres/Wholphin/pull/1106#issuecomment-4077678690

### Testing
Local builds

## Screenshots
N/A

## AI or LLM usage
None
This commit is contained in:
Ray 2026-03-17 17:04:27 -04:00 committed by GitHub
parent 3af9775592
commit d184990b16
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 25 additions and 4 deletions

View file

@ -15,7 +15,8 @@ function clone(){
if [[ -d "$dir" ]]; then
pushd "$dir" || exit
git checkout --force "$branch"
git fetch origin "$branch" --depth 1
git checkout --force FETCH_HEAD
popd || exit
else
git clone "$repo" --depth 1 --single-branch -b "$branch" "$dir" "$@"