Fennec SDK: split from the Fennec OS repository
All checks were successful
ci / test (push) Successful in 17m21s
All checks were successful
ci / test (push) Successful in 17m21s
The app-facing parts of Fennec OS move here, so apps build without the OS sources: - sf-app: the app contract (manifest, permissions, store rules, sandbox, launch), from sf-ipc; the OS depends on it by tag. - sf-ui (+ gallery), sf-pack, templates/rust-app, docs. Store apps may now register for DIAL: a [dial] section implies the new `dial` permission, which the user approves like any other. The templates no longer mention signing: store releases are unsigned. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
# Gitea / Forgejo (Codeberg): on a tag (v1.2.3), build, sign and publish a
|
||||
# release with the three store assets. Secret: SF_SIGNING_KEY (base64 of
|
||||
# key.pem on one line). The job token creates the release.
|
||||
# Gitea / Forgejo (Codeberg): on a tag (v1.2.3), build and publish a release
|
||||
# with the two store assets. The job token creates the release.
|
||||
name: release
|
||||
on:
|
||||
push:
|
||||
@@ -11,7 +10,7 @@ jobs:
|
||||
container:
|
||||
image: debian:trixie
|
||||
env:
|
||||
SF_PACK_GIT: https://gitea.bluefox.support/bluefox/fox-in-the-box
|
||||
SF_PACK_GIT: https://gitea.bluefox.support/fennec/sdk
|
||||
steps:
|
||||
- name: Checkout
|
||||
run: |
|
||||
@@ -20,9 +19,7 @@ jobs:
|
||||
libfontconfig1-dev libfreetype-dev libxkbcommon-dev >/dev/null
|
||||
git clone --depth 1 --branch "$GITHUB_REF_NAME" \
|
||||
"${GITHUB_SERVER_URL%%://*}://oauth2:${{ secrets.GITHUB_TOKEN }}@${GITHUB_SERVER_URL#*://}/${GITHUB_REPOSITORY}.git" src
|
||||
- name: Build and sign
|
||||
env:
|
||||
SF_SIGNING_KEY: ${{ secrets.SF_SIGNING_KEY }}
|
||||
- name: Build
|
||||
run: |
|
||||
curl -sSf https://sh.rustup.rs | sh -s -- -y -q --profile minimal
|
||||
export PATH="$HOME/.cargo/bin:$PATH"
|
||||
|
||||
11
templates/rust-app/.github/workflows/release.yml
vendored
11
templates/rust-app/.github/workflows/release.yml
vendored
@@ -1,6 +1,5 @@
|
||||
# GitHub: on a tag (v1.2.3), build in Debian trixie, sign, and publish a
|
||||
# release with the three store assets. Secret: SF_SIGNING_KEY (base64 of
|
||||
# key.pem on one line: `base64 -w0 key.pem`).
|
||||
# GitHub: on a tag (v1.2.3), build in Debian trixie and publish a release
|
||||
# with the two store assets.
|
||||
name: release
|
||||
on:
|
||||
push:
|
||||
@@ -12,7 +11,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
container: debian:trixie
|
||||
env:
|
||||
SF_PACK_GIT: https://gitea.bluefox.support/bluefox/fox-in-the-box
|
||||
SF_PACK_GIT: https://gitea.bluefox.support/fennec/sdk
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Toolchain
|
||||
@@ -24,9 +23,7 @@ jobs:
|
||||
echo "$HOME/.cargo/bin" >> "$GITHUB_PATH"
|
||||
- name: sf-pack
|
||||
run: cargo install -q --locked --git "$SF_PACK_GIT" sf-pack
|
||||
- name: Build and sign
|
||||
env:
|
||||
SF_SIGNING_KEY: ${{ secrets.SF_SIGNING_KEY }}
|
||||
- name: Build
|
||||
run: ./package.sh
|
||||
- name: Release
|
||||
env:
|
||||
|
||||
@@ -1,13 +1,12 @@
|
||||
# GitLab: on a tag (v1.2.3), build, sign, put the three store assets into the
|
||||
# GitLab: on a tag (v1.2.3), build, put the two store assets into the
|
||||
# project's generic package registry and make a release that links them.
|
||||
# CI/CD variable: SF_SIGNING_KEY (base64 of key.pem on one line, masked).
|
||||
# The project must be public, so TVs can download without a login.
|
||||
release:
|
||||
image: debian:trixie
|
||||
rules:
|
||||
- if: $CI_COMMIT_TAG =~ /^v/
|
||||
variables:
|
||||
SF_PACK_GIT: https://gitea.bluefox.support/bluefox/fox-in-the-box
|
||||
SF_PACK_GIT: https://gitea.bluefox.support/fennec/sdk
|
||||
script:
|
||||
- apt-get update -qq
|
||||
- apt-get install -y -qq --no-install-recommends build-essential pkg-config curl ca-certificates git jq libfontconfig1-dev libfreetype-dev libxkbcommon-dev >/dev/null
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Fennec OS store app manifest (docs/store.md in the Fennec OS repo).
|
||||
# Fennec OS store app manifest (docs/store-app-guide.md in the Fennec SDK).
|
||||
# The id is a reverse domain name you control: io.github.<user>.<app>,
|
||||
# io.gitlab.<user>.<app>, org.codeberg.<user>.<app>, or your own domain.
|
||||
id = "io.github.example.hello"
|
||||
@@ -18,12 +18,9 @@ exec = ["bin/hello-fennec"]
|
||||
accent = "#FF9A5C"
|
||||
palette = ["#ffb27a", "#8a3d12", "#120805"]
|
||||
|
||||
# Your signing key's public half: `sf-pack keygen` prints it. Every release
|
||||
# must be signed with the same key, or TVs won't update.
|
||||
|
||||
[sandbox]
|
||||
# What the app may use besides its own files and the screen. The TV shows
|
||||
# this list before installing; an update that asks for more waits for the
|
||||
# user to approve it. network, gpu, audio, gamepad, dbus-session,
|
||||
# dbus-system, devices.
|
||||
# dbus-system, devices. A [dial] section (cast from a phone) adds dial.
|
||||
permissions = ["gpu"]
|
||||
|
||||
Reference in New Issue
Block a user