feat(start): show paying Patreon supporters on the Start page

Add a right-hand rail on the Start page listing active paying patrons
(name + pledge amount, highest first) with a "Support on Patreon" button.
The list is fetched once at boot from the Patreon API in the background;
free followers, $0 tiers, declined and former patrons are excluded.

The creator access token is read at build time from OCS_PATREON_TOKEN
(option_env!), so it never lives in source or git — the release workflow
passes it from a repo secret, and build.rs re-bakes when it changes.
Without a token the rail just shows the support button.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Hakan Seven 2026-07-02 01:00:22 +03:00
commit 608fe5ec3e
8 changed files with 208 additions and 3 deletions

View file

@ -27,6 +27,8 @@ jobs:
librsvg2-bin fuse libfuse2
- name: Build
env:
OCS_PATREON_TOKEN: ${{ secrets.OCS_PATREON_TOKEN }}
run: cargo build --release
- name: Prepare AppDir
@ -92,6 +94,8 @@ jobs:
packaging/windows/AppIcon.ico
- name: Build
env:
OCS_PATREON_TOKEN: ${{ secrets.OCS_PATREON_TOKEN }}
run: cargo build --release
- name: Sign executable (Azure Trusted Signing)
@ -215,6 +219,8 @@ jobs:
run: brew install librsvg
- name: Build
env:
OCS_PATREON_TOKEN: ${{ secrets.OCS_PATREON_TOKEN }}
run: cargo build --release --target aarch64-apple-darwin
- name: Build .icns from SVG