- QML 29.8%
- Shell 24.6%
- JavaScript 24%
- C++ 19.3%
- Nix 1.3%
- Other 1%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
|
||
| .forgejo/workflows | ||
| docs | ||
| icons | ||
| qml | ||
| rpm | ||
| scripts | ||
| src | ||
| .gitignore | ||
| AGENTS.md | ||
| flake.nix | ||
| harbour-sfos-forgejo-store.desktop | ||
| harbour-sfos-forgejo-store.pro | ||
| README.md | ||
| sdk-version.json | ||
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)
- 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 (statusN/M sources…). - Open an app → App detail (info + up to 5 versions) → Install page for a release (Packages: files API; Releases: direct asset URL).
- Download the
.rpmto a writable SFOS path. - Install via
org.sailfishos.installationhandler(installFileswithfile://URLs).pkconis a devel/unsandboxed fallback only. If permissions are missing, keep the file and point to Settings → Apps. - Updates: after catalog load, compare installed
harbour-*(viarpm -qa) to each app’s latest version; badge + Update / Updates filter. Same download+pkcon path. No background check in this slice. - Self-update:
harbour-sfos-forgejo-storeappears 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.installationhandlerinstallFiles(file://…URLs), same path assdk-deploy-rpm. - Falls back to
pkcon install-localonly 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):
GET /api/v4/projects/:id/packages?package_name=…(generic registry)- Keep ≤5 releaseish versions (skip
-dev*; prefer*-harbour) GET …/packages/:id/package_files→ preferharbour-*.aarch64.rpm(skip debuginfo)- 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.ymlbuilds withcoderus/sailfishos-platform-sdk:5.2.0.15(seesdk-version.json), then publishes the RPM as a release asset (and best-effort Forgejo Packagestype=rpm). Packages uploads often return401 reqPackageAccessfor 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 -qafor 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.Ztag (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 onlyharbour-*).
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 inexternalSourceList). - Self-contained
qml/js/OpenRepos.jsmodule;ForgejoApi.jsreferences OpenRepos only by theopenreposliteral (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.installationhandlerinstallFilesfirst (do not gate onisServiceRegistered— service is often activatable and absent until first call). - Connect
installFinished/needConfirmviaQDBusConnection::sessionBus().connect(avoids fragileQDBusInterfaceSIGNAL 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.installationhandlerinstallFiles(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-storevia release repo. - Release fetch
limit=5; prefer aarch64 harbour RPM assets. - Progressive parallel refresh (show apps as each source returns).