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>
30 lines
1.4 KiB
YAML
30 lines
1.4 KiB
YAML
# 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.
|
|
# 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/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
|
|
- curl -sSf https://sh.rustup.rs | sh -s -- -y -q --profile minimal
|
|
- export PATH="$HOME/.cargo/bin:$PATH"
|
|
- cargo install -q --locked --git "$SF_PACK_GIT" sf-pack
|
|
- ./package.sh
|
|
- VERSION="${CI_COMMIT_TAG#v}"
|
|
- PKG="$CI_API_V4_URL/projects/$CI_PROJECT_ID/packages/generic/smartfox/$VERSION"
|
|
- links="[]"
|
|
- |
|
|
for f in dist/*; do
|
|
n=$(basename "$f")
|
|
curl -fsS --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file "$f" "$PKG/$n" >/dev/null
|
|
links=$(echo "$links" | jq --arg n "$n" --arg u "$PKG/$n" '. + [{name: $n, url: $u, link_type: "package"}]')
|
|
done
|
|
- |
|
|
jq -n --arg t "$CI_COMMIT_TAG" --argjson l "$links" '{tag_name: $t, name: $t, assets: {links: $l}}' |
|
|
curl -fsS --header "JOB-TOKEN: $CI_JOB_TOKEN" --header "Content-Type: application/json" --data @- \
|
|
"$CI_API_V4_URL/projects/$CI_PROJECT_ID/releases" >/dev/null
|