Sailfish OS store for Forgejo Packages on git.bitp.cz
  • QML 29.8%
  • Shell 24.6%
  • JavaScript 24%
  • C++ 19.3%
  • Nix 1.3%
  • Other 1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Grok 3935ed2483
All checks were successful
harbour-sfos-forgejo-store-rpm / gate (push) Successful in 1s
harbour-sfos-forgejo-store-rpm / build-blocked (push) Has been skipped
harbour-sfos-forgejo-store-rpm / build (push) Successful in 32s
Merge pull request 'fix(store): own release tags + RPM Packages download URL (0.1.10)' (#17) from sfos/fix-store-release-tags-and-rpm-download-url into main
Merge PR #17: publish 0.1.10 on its own release tag; fix RPM Packages download URL.
2026-11-22 21:25:46 +01:00
.forgejo/workflows fix(store): own release tags, RPM Packages download URL, 0.1.10 2026-11-22 21:25:19 +01:00
docs fix(store): own release tags, RPM Packages download URL, 0.1.10 2026-11-22 21:25:19 +01:00
icons Add harbour RPM CI/publish and self-list in release catalog 2026-09-25 14:34:24 +02:00
qml fix(store): own release tags, RPM Packages download URL, 0.1.10 2026-11-22 21:25:19 +01:00
rpm fix(store): own release tags, RPM Packages download URL, 0.1.10 2026-11-22 21:25:19 +01:00
scripts fix(store): own release tags, RPM Packages download URL, 0.1.10 2026-11-22 21:25:19 +01:00
src List Dvorak CZ keyboard layout in the store (0.1.9) 2026-11-22 11:58:48 +01:00
.gitignore Initial harbour scaffold: Forgejo Packages store for SFOS 2026-09-25 09:12:09 +02:00
AGENTS.md ci: run sfos-harbour-smoke after RPM build 2026-09-25 23:34:39 +02:00
flake.nix Add harbour RPM CI/publish and self-list in release catalog 2026-09-25 14:34:24 +02:00
harbour-sfos-forgejo-store.desktop feat(store): Sailjail Downloads+ApplicationInstallation via installationhandler (0.1.5) 2026-09-25 23:10:03 +02:00
harbour-sfos-forgejo-store.pro fix(store): own release tags, RPM Packages download URL, 0.1.10 2026-11-22 21:25:19 +01:00
README.md fix(store): own release tags, RPM Packages download URL, 0.1.10 2026-11-22 21:25:19 +01:00
sdk-version.json Add harbour RPM CI/publish and self-list in release catalog 2026-09-25 14:34:24 +02:00

harbour-sfos-forgejo-store

Sailfish OS (Silica) harbour app that lists RPMs from git.bitp.cz — Forgejo Packages, harbour RPMs on repo Releases (defaults: donach/orca, donach/zulip-sfos, donach/t3code-sfos, donach/omb-sfos), and external forge sources (GitLab Packages — e.g. Whisperfish — and OpenRepos.net — e.g. Whatsapp, no project clone) — and installs them on-device (SFOS 5.2.x aarch64).

Harbour / binary / desktop name: harbour-sfos-forgejo-store

Product defaults

Item Choice
Instance https://git.bitp.cz
Catalog sources (v1) Forgejo Packages + Releases + external (GitLab Packages API + OpenRepos)
Default release repos donach/orca, donach/zulip-sfos, donach/t3code-sfos, donach/omb-sfos, donach/sfos-forgejo-store, donach/sfos-keyboard-dvorak-cz
Default external sources gitlab:whisperfish/whisperfish#harbour-whisperfish, openrepos:aviarus/whatsapp
Default package owners bitpartner, donach, code-fixxers
APKs Omitted in v1 (AppSupport out of harbour install path)
UI Native Silica / QML (sailfishapp); app cards → detail with ≤5 releases; All / Releases / Packages / Updates
Auth v1 Anonymous / public listing first; optional PAT stub in Settings
Download C++ QNetworkAccessManager → Downloads/harbour-sfos-forgejo-store/
Install Session D-Bus org.sailfishos.installationhandler installFiles (ApplicationInstallation); pkcon fallback if service missing
Update check rpm -qa harbour-* vs latest app version; Update badge when remote newer
Self-update Store lists donach/sfos-forgejo-store; install via same pkcon install-local path
Success rule Only when installationhandler reports success (or pkcon exit 0 on fallback)
Packaging aarch64 harbour RPM (QML + C++ PackageInstaller); see rpm/

Vertical slice (v1)

  1. List apps (one card per harbour package / release repo) from Packages owners and configured release repos (≤5 latest releases each; prefer harbour-*.aarch64.rpm). Parallel XHRs with progressive fill — cards appear as each source returns (status N/M sources…).
  2. Open an app → App detail (info + up to 5 versions) → Install page for a release (Packages: files API; Releases: direct asset URL).
  3. Download the .rpm to a writable SFOS path.
  4. Install via org.sailfishos.installationhandler (installFiles with file:// URLs). pkcon is a devel/unsandboxed fallback only. If permissions are missing, keep the file and point to Settings → Apps.
  5. Updates: after catalog load, compare installed harbour-* (via rpm -qa) to each app’s latest version; badge + Update / Updates filter. Same download+pkcon path. No background check in this slice.
  6. Self-update: harbour-sfos-forgejo-store appears in the catalog; installing a newer RPM uses the same path. After success, relaunch the store. Enable Application installation in Settings → Apps if the system installer is blocked.

Install & Sailjail permissions

Grant permissions in Settings → Apps → Forgejo Store (wording may follow system UI translations):

Permission Why
Internet Catalog + RPM download
Downloads Store RPMs under Downloads/harbour-sfos-forgejo-store/
Application installation (ApplicationInstallation) Talk to org.sailfishos.installationhandler to install

Without Downloads, downloads fail. Without Application installation, installFiles is blocked (this permission does not allow spawning pkcon).

This app:

  • Always saves the RPM under the app download directory (path shown in UI).
  • Installs via session-bus org.sailfishos.installationhandler installFiles (file://… URLs), same path as sdk-deploy-rpm.
  • Falls back to pkcon install-local only if that D-Bus service is missing (devel / unsandboxed).
  • Never claims success without installer success / pkcon exit 0.
  • On denial, points the user at Settings → Apps (and File Manager / Warehouse).

Harbour FAQ caveat: ApplicationInstallation is typically not accepted for Jolla Harbour Store submission; fine for private / Chum-style distribution.

See docs/SCOPE.md.

External sources (GitLab, OpenRepos and friends)

Add entries in Settings → External sources, or ship defaults in externalSourceList. Spec forms (comma-separated):

Spec Meaning
gitlab:group/project GitLab.com project; package name guessed as harbour-<leaf>
gitlab:group/project#harbour-foo Explicit generic package name
gitlab:https://gitlab.example/g/p#harbour-foo Self-hosted GitLab base URL
openrepos:owner/name OpenRepos.net content page; package name guessed from the attached RPMs
openrepos:owner/name#harbour-foo Explicit package name (title / install target)
openrepos:https://openrepos.net/content/owner/name Full content-page URL

Flow (no git clone):

  1. GET /api/v4/projects/:id/packages?package_name=… (generic registry)
  2. Keep ≤5 releaseish versions (skip -dev*; prefer *-harbour)
  3. GET …/packages/:id/package_files → prefer harbour-*.aarch64.rpm (skip debuginfo)
  4. Download via /api/v4/projects/:id/packages/generic/:name/:version/:file

Whisperfish harbour RPMs live in the GitLab Package Registry, not Release asset links (those are source .tar.gz only).

OpenRepos has no JSON API (it is a Drupal site), so OpenRepos.js fetches the content page and parses the attachment <table> of *.rpm links: it keeps ≤5 distinct versions, picks the aarch64 build per version (falling back to noarch, then the first build), and exposes the direct .rpm URL for install. Default: openrepos:aviarus/whatsapp → harbour-whatsapp.

API approach (dual source + external)

Forgejo has no instance-wide GET /api/v1/packages without an owner. This app aggregates:

GET /api/v1/packages/{owner}?type=rpm&page=&limit=&q=

across a configurable owner list, and:

GET /api/v1/repos/{owner}/{repo}/releases?limit=

across a configurable release-repo list (default includes donach/sfos-forgejo-store), fetching limit=20 releases, reading the version from each RPM filename, and keeping the 5 highest versions (aarch64 over noarch). See docs/api.md.

Packages download (RPM registry, not /api/v1 and not the generic package path):

GET /api/packages/{owner}/rpm/package/{name}/{version}/{arch}/{filename}

Releases download: asset browser_download_url (direct).

Repo ownership

  • Forgejo: donach/sfos-forgejo-store
  • Working agent: SFOS (sfos@bitp.cz)
  • Ask D. H. only on hard product forks (see AGENTS.md / docs/SCOPE.md)

Build notes

  • Do not pull Sailfish Platform SDK images from agent boxes (OOM risk).
  • CI: .forgejo/workflows/harbour-sfos-forgejo-store-rpm.yml builds with coderus/sailfishos-platform-sdk:5.2.0.15 (see sdk-version.json), then publishes the RPM as a release asset (and best-effort Forgejo Packages type=rpm). Packages uploads often return 401 reqPackageAccess for CI / Grok PATs — the release asset is the supported install path for the store catalog.
  • Local light checks: ./scripts/check-harbour-sfos-forgejo-store-scaffold.sh, ./rpm/check-catalog-parse.sh, ./rpm/check-noarch.sh, ./rpm/check-orca-catalog.sh.

Blockers / known gaps

  • No true instance-wide package list in Forgejo API → owner aggregation.
  • Instance Packages registry currently has essentially zero type=rpm; harbour RPMs for Orca live on Releases instead — hence the dual source.
  • Releases are capped at 5 newest per app (no full history fetch in v1).
  • Anonymous listing may return fewer items than authenticated; PAT settings are in-memory only (not persisted).
  • On-device install needs Settings → Apps permissions (Internet, Downloads, Application installation). rpm -qa for Update badges may fail under jail (Compatibility private-bin); no Privileged requested.
  • APKs from Orca releases are intentionally not installable / not listed in v1.

Changelog

0.1.10

  • CI publishes each version to its own harbour-sfos-forgejo-store-vX.Y.Z tag (no hardcoded tag).
  • Catalog / self-update prefers the RPM asset filename version over the release tag, scans all assets across fetched releases, and picks the highest version (so a newer RPM attached to an older tag is still visible).
  • Fix Forgejo RPM Packages download URL to /api/packages/{owner}/rpm/package/{name}/{version}/{arch}/{filename} (the old generic path 404'd and blocked Packages-source installs such as the Dvorak CZ keyboard on store ≤0.1.7).

0.1.9

  • Default release sources now include donach/sfos-keyboard-dvorak-cz (sailfish-keyboard-layout-dvorak-cz).
  • List non-harbour SFOS RPMs from release repos (still prefer harbour-* when both exist).
  • Update check also queries installed sailfish-keyboard-layout-* (not only harbour-*).

0.1.8

  • New external source: OpenRepos.net (openrepos:owner/name[#pkg]) — parsed from the content page's attachment table (no JSON API); ≤5 aarch64 releases per app.
  • Default source: openrepos:aviarus/whatsapp → harbour-whatsapp (ships in externalSourceList).
  • Self-contained qml/js/OpenRepos.js module; ForgejoApi.js references OpenRepos only by the openrepos literal (no import), so no module-import cycle.
  • Releases filter, source badge (OpenRepos), and status count now include OpenRepos apps.

0.1.7

  • External catalog sources via GitLab Packages API (no project clone).
  • Default source: gitlab:whisperfish/whisperfish#harbour-whisperfish.
  • Settings field for external specs; Releases filter includes GitLab apps.
  • Catalog check validates live Whisperfish harbour RPM download URL.

0.1.6

  • Always call org.sailfishos.installationhandler installFiles first (do not gate on isServiceRegistered — service is often activatable and absent until first call).
  • Connect installFinished / needConfirm via QDBusConnection::sessionBus().connect (avoids fragile QDBusInterface SIGNAL connect when introspection fails).
  • On service-unknown: startService + one short retry, then pkcon fallback with clear status.
  • Surface actual D-Bus/pkcon errors as Install error: … on InstallPage (error color).

0.1.5

  • Sailjail Permissions=Internet;Downloads;ApplicationInstallation.
  • Install via org.sailfishos.installationhandler installFiles (pkcon fallback).
  • Docs: enable Internet / Downloads / Application installation in Settings → Apps.

0.1.4

  • App-centric catalog (one card per app) + AppDetailPage with ≤5 releases.
  • Self-listing / self-update for harbour-sfos-forgejo-store via release repo.
  • Release fetch limit=5; prefer aarch64 harbour RPM assets.
  • Progressive parallel refresh (show apps as each source returns).