The apps are developed apart from the OS now, each in its own repo under gitea.bluefox.support/fennec: - sdk: sf-app (the app contract: manifest, permissions, store rules, sandbox, launch; from sf-ipc), sf-ui, sf-pack, the app template, the developer guide. The OS depends on it by tag (v0.1.0). - youtube, steam: store apps. netflex (native) replaces the Netflex web app. - store: the Fennec catalog, the store source a new TV starts with. This repo keeps the OS and its own apps (Settings, App Store, AirPlay, Miracast). sf-ipc re-exports sf-app, so OS code is mostly unchanged. - Store apps may register for DIAL (the `dial` permission); an official app with the same DIAL name wins. - Built-in icon names are for official apps only. - The image installs the catalog apps at build time (factory-store.toml, sf-update store in mkosi.postinst.chroot). Steam's system part stays in the image: 32-bit libraries, controller udev rules (from Valve's apt repo), Valve's key. - Older TVs move over by themselves: sf-update adds the replacements to store.toml once, the old factory app stays until its replacement is installed, YouTube's and Steam's data folders move to the new ids, and the old sf-app-<id> packages are not installed any more. Shell 0.3.0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
67 lines
2.2 KiB
YAML
67 lines
2.2 KiB
YAML
# Builds, signs and publishes the Fennec OS packages (shell + apps) to the
|
|
# Gitea generic package registry. A package is only built when its version
|
|
# isn't published yet: bump the version to release (docs/updates.md).
|
|
#
|
|
# 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.
|
|
name: packages
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
paths:
|
|
- "crates/**"
|
|
- "apps/**"
|
|
- "Cargo.toml"
|
|
- "Cargo.lock"
|
|
- "tools/pkg/**"
|
|
- "tools/siri-remote/fastpair.py"
|
|
- ".gitea/workflows/packages.yml"
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
packages:
|
|
runs-on: build
|
|
container:
|
|
image: docker.gitea.com/runner-images:ubuntu-latest
|
|
env:
|
|
CARGO_HOME: /tmp/sf-build/cargo
|
|
RUSTUP_HOME: /tmp/sf-build/rustup
|
|
CARGO_TARGET_DIR: /tmp/sf-build/target
|
|
CARGO_INCREMENTAL: "0"
|
|
SF_OUT: /tmp/sf-build/out
|
|
steps:
|
|
- name: Checkout
|
|
run: |
|
|
mkdir -p /tmp/sf-build
|
|
host="${GITHUB_SERVER_URL#https://}"
|
|
git clone --depth 1 --branch "${GITHUB_REF_NAME}" \
|
|
"https://oauth2:${{ secrets.GITHUB_TOKEN }}@${host}/${GITHUB_REPOSITORY}.git" /tmp/sf-build/src
|
|
|
|
- name: Toolchain
|
|
run: |
|
|
export DEBIAN_FRONTEND=noninteractive
|
|
apt-get update -qq
|
|
apt-get install -y -qq --no-install-recommends build-essential pkg-config zstd \
|
|
libfontconfig1-dev libfreetype-dev libxkbcommon-dev libdbus-1-dev libudev-dev \
|
|
libinput-dev libgbm-dev libseat-dev libdrm-dev libegl-dev >/dev/null
|
|
rm -rf /var/lib/apt/lists/*
|
|
curl -sSf https://sh.rustup.rs | sh -s -- -y -q --profile minimal --no-modify-path
|
|
/tmp/sf-build/cargo/bin/rustc --version
|
|
|
|
- name: Build, sign, upload
|
|
env:
|
|
SF_SIGNING_KEY: ${{ secrets.SF_SIGNING_KEY }}
|
|
SF_PACKAGE_TOKEN: ${{ secrets.SF_PACKAGE_TOKEN }}
|
|
run: |
|
|
export PATH="/tmp/sf-build/cargo/bin:$PATH"
|
|
cd /tmp/sf-build/src
|
|
bash tools/pkg/packages.sh --upload
|
|
|
|
- name: Clean up
|
|
if: always()
|
|
run: |
|
|
rm -rf /tmp/sf-build
|
|
df -h / | tail -1
|