21 lines
645 B
Bash
21 lines
645 B
Bash
#!/bin/zsh
|
|
set -euo pipefail
|
|
# VLCKit 4.x (unified) — required for Apple Picture in Picture.
|
|
# MobileVLCKit 3.7.x has NO PiP API.
|
|
|
|
URL='https://download.videolan.org/pub/cocoapods/unstable/VLCKit-4.0.0a19-d7597c1706-85a537d69.tar.xz'
|
|
OUT=/tmp/VLCKit-4.0.0a19.tar.xz
|
|
UNPACK=/tmp/vlckit4unpack
|
|
|
|
echo "Downloading VLCKit 4.0.0a19 (~500MB)…"
|
|
curl -fL --progress-bar -o "$OUT" "$URL"
|
|
|
|
rm -rf "$UNPACK"
|
|
mkdir -p "$UNPACK"
|
|
echo "Unpacking…"
|
|
tar -xJf "$OUT" -C "$UNPACK"
|
|
|
|
echo "Unpacked:"
|
|
find "$UNPACK" -name 'VLCKit.xcframework' -type d | head -5
|
|
test -d "$UNPACK/VLCKit-binary/VLCKit.xcframework"
|
|
echo "OK — run: bash scripts/link-vlckit.sh"
|