YouTube 2.0.0: native client without ads
All checks were successful
release / release (push) Successful in 10m13s
All checks were successful
release / release (push) Successful in 10m13s
Replaces the web app (youtube.com/tv in Chromium) with a native Rust + Slint client on sf-ui, built on Netflex TV's page engine. - InnerTube: web client for public pages, the TV client with the account's OAuth token for personal ones, visionOS (direct URLs) for streams, the TV client with yt-dlp's ejs solver (QuickJS) as fallback. - One version, no ads: ad breaks are never requested, ad renderers are skipped in feeds. SponsorBlock skips sponsored parts. - Sign-in with a QR code / youtube.com/activate (OAuth device flow). - Signed out: subscriptions and history on the TV; a home filled with this week's popular Hungarian videos when YouTube's is empty. - Playback: one-quality DASH manifest for GStreamer, H.264 up to 1080p or AV1 up to 4K, captions, quality switching, up next, resume. - Release builds for x86-64 and the Raspberry Pi (aarch64). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,8 +1,11 @@
|
||||
# On a tag (v1.2.3): build the two store assets and publish them as a release.
|
||||
# On a tag (v1.2.3): build the app and publish a release with the store
|
||||
# assets: app.toml, the x86-64 package and the aarch64 one (Raspberry Pi,
|
||||
# docs/store.md in Fennec OS). sf-ui and sf-pack come from the Fennec SDK (public).
|
||||
#
|
||||
# Runner hygiene (shared host, little disk): runs in the runner image that is
|
||||
# already on the host (no image pull), uses no `uses:` actions (no action
|
||||
# cache), and deletes everything it made at the end.
|
||||
# cache), and deletes everything it made at the end. The image is Ubuntu
|
||||
# 24.04: its glibc is older than the TV's (Debian trixie), so the binary runs.
|
||||
name: release
|
||||
on:
|
||||
push:
|
||||
@@ -17,8 +20,9 @@ jobs:
|
||||
CARGO_HOME: /tmp/fennec-youtube/cargo
|
||||
RUSTUP_HOME: /tmp/fennec-youtube/rustup
|
||||
CARGO_TARGET_DIR: /tmp/fennec-youtube/target
|
||||
CARGO_INCREMENTAL: "0"
|
||||
SDK_GIT: https://gitea.bluefox.support/fennec/sdk
|
||||
SDK_TAG: v0.1.0
|
||||
SDK_TAG: v0.1.2
|
||||
steps:
|
||||
- name: Checkout
|
||||
run: |
|
||||
@@ -27,21 +31,45 @@ jobs:
|
||||
"${GITHUB_SERVER_URL%%://*}://oauth2:${{ secrets.GITHUB_TOKEN }}@${GITHUB_SERVER_URL#*://}/${GITHUB_REPOSITORY}.git" "$W/src"
|
||||
v=$(sed -n 's/^version *= *"\(.*\)".*/\1/p' "$W/src/app.toml" | head -1)
|
||||
[ "v$v" = "$GITHUB_REF_NAME" ] || { echo "tag $GITHUB_REF_NAME, but app.toml says $v" >&2; exit 1; }
|
||||
- name: sf-pack
|
||||
- name: Toolchain
|
||||
run: |
|
||||
curl -sSf https://sh.rustup.rs | sh -s -- -y -q --profile minimal --no-modify-path
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
# arm64 libraries for the Raspberry Pi build (package.sh --arm):
|
||||
# Ubuntu serves them from ports.ubuntu.com, the main mirror is amd64 only.
|
||||
. /etc/os-release
|
||||
dpkg --add-architecture arm64
|
||||
if [ -f /etc/apt/sources.list.d/ubuntu.sources ]; then
|
||||
sed -i '/^Architectures:/d; /^Types:/a Architectures: amd64' /etc/apt/sources.list.d/ubuntu.sources
|
||||
fi
|
||||
[ -f /etc/apt/sources.list ] && sed -i 's/^deb \(http\)/deb [arch=amd64] \1/' /etc/apt/sources.list
|
||||
printf 'Types: deb\nURIs: http://ports.ubuntu.com/ubuntu-ports/\nSuites: %s %s-updates %s-security\nComponents: main universe\nArchitectures: arm64\nSigned-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg\n' \
|
||||
"$VERSION_CODENAME" "$VERSION_CODENAME" "$VERSION_CODENAME" >/etc/apt/sources.list.d/arm64-ports.sources
|
||||
apt-get update -qq
|
||||
# Multiarch dev packages for both architectures; for arm64 only the
|
||||
# GStreamer runtime libraries: its dev packages can't be installed for
|
||||
# two architectures at once (package.sh --arm links the libraries).
|
||||
libs="libfontconfig1-dev libfreetype-dev libxkbcommon-dev libglib2.0-dev"
|
||||
apt-get install -y -qq --no-install-recommends build-essential pkg-config \
|
||||
gcc-aarch64-linux-gnu g++-aarch64-linux-gnu libc6-dev-arm64-cross \
|
||||
$libs $(for l in $libs; do printf '%s:arm64 ' "$l"; done) \
|
||||
libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev \
|
||||
libgstreamer1.0-0:arm64 libgstreamer-plugins-base1.0-0:arm64
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
curl -sSf https://sh.rustup.rs | sh -s -- -y -q --profile minimal --no-modify-path --target aarch64-unknown-linux-gnu
|
||||
"$CARGO_HOME/bin/cargo" install -q --locked --git "$SDK_GIT" --tag "$SDK_TAG" sf-pack
|
||||
- name: Build
|
||||
run: |
|
||||
export PATH="$CARGO_HOME/bin:$PATH"
|
||||
"$W/src/package.sh"
|
||||
"$W/src/package.sh" --arm
|
||||
- name: Release
|
||||
env:
|
||||
TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
api="$GITHUB_SERVER_URL/api/v1/repos/$GITHUB_REPOSITORY/releases"
|
||||
id=$(curl -fsS -H "Authorization: token $TOKEN" -H "Content-Type: application/json" \
|
||||
-d "{\"tag_name\":\"$GITHUB_REF_NAME\",\"name\":\"$GITHUB_REF_NAME\"}" "$api" | grep -o "\"id\":[0-9]*" | head -1 | cut -d: -f2)
|
||||
-d "{\"tag_name\":\"$GITHUB_REF_NAME\",\"name\":\"$GITHUB_REF_NAME\"}" "$api" \
|
||||
| grep -o '"id":[0-9]*' | head -1 | cut -d: -f2)
|
||||
for f in "$W"/src/dist/*; do
|
||||
curl -fsS -H "Authorization: token $TOKEN" -F "attachment=@$f" "$api/$id/assets?name=$(basename "$f")" >/dev/null
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user