Skip to content

About

NBTFoundry's landing page and the application catalog the phone app reads

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

74 Commits

Folders and files

Repository files navigation

nbtfoundry.github.io

The landing page and the application catalog the phone app reads: https://nbtfoundry.github.io/catalog.json.

  • apps.json: the reviewed list of applications.
  • tools/build_catalog.py: each app's newest releases (stable ones and newer pre-releases, the phone app can go back to any), every file verified against the manager's release/*.pem (tools/nbt_files.py).
  • site/: the landing page. site/apps.js reads catalog.json in the browser and renders the application cards (the featured ones first, the others A to Z), NBT Manager's release and the update date: the same file as the phone app.
  • tools/share-card.html: the link preview, site/assets/share.png (the command is in the file).
  • tools/phone_car.py: the phone beside the car's screen (theme-*.webp, phone-install.webp), from the phone app's and the manager's captures.
  • tools/render_site.py: site/ plus catalog.json.
  • .github/workflows/pages.yml: on push, after each release (the release workflows of the manager and the applications start it: NBTFoundry/manager, .github/actions/update-catalog), every 30 minutes and by hand. GitHub pauses the schedule after 60 days without a commit here: re-enable it under Actions.

Adding an application

Add an entry to apps.json:

Field
id The package's app id (--app); a release whose package has another id is left out
repo owner/name; releases tagged vX.Y.Z, one .nbt each (the manager's app-release.yml), or <id>-vX.Y.Z in NBTFoundry/community-apps
name, summary, license, category Shown as is (category: game, emulator, tool, system)
title Optional, what the app gives ("PlayStation games"): the card's title, name under it
icon Optional, icons/<name>.svg (or .png, .webp) in site/
cover Optional, screens/<name>.webp (or .png) in site/, 8:3: a featured card's capture
guide Optional, <name>.html in site/: the application's page on this site, where its card leads
featured Optional, true: a large card before the others, in apps.json order
withdrawn Optional, versions never to list

Local

python3 -I -m unittest discover -s tests
GITHUB_TOKEN=$(gh auth token) python3 -I tools/build_catalog.py --keys ../manager/release --output out/catalog.json
python3 -I tools/render_site.py --catalog out/catalog.json --output _site

Catalog

schema 1. Optional crashIntake: HTTPS intake base URL for scrubbed car crash reports (no trailing slash). Optional phone: the phone app's newest build on Google Play, version, build (its version code) and runtime (plugins/runtimeVersion.js of that build); a phone on another runtime offers to open the store. The Pages run finds it by itself (tools/play_build.py: the newest build on the widest Google Play track that serves one, its runtime from Expo; secrets PLAY_SERVICE_ACCOUNT and EXPO_TOKEN) and offers it 12 hours after first seeing it (it may still be in review), waiting in phoneNext with seen meanwhile; it never goes back to an older build. phone in apps.json is the floor, for when Play cannot be read. apps[] in apps.json order: id, name, summary, repo, license, category, icon, title, cover, guide, featured (the last four for the landing page; the phone app ignores them), releases[] (newest first, at most 6: the stable releases and the pre-releases newer than the newest stable one, which stays however many came after it: a phone without betas installs it): version, sequence (a string), prerelease, date, page, compat, bridge, properties, text, uses (the package's capabilities, bridge-uses then bridge-optional; null for NBT Manager), notes, files[] (name, url, size, sha256, version, sequence, format: the file's magic, NBTMGR1, NBTMGR2 (compressed), or NBTRLS1 to NBTRLS4, which the phone compares with the formats the car's /v1/manager lists), one per release. notes is what the release's page says before its rule, as plain lines (### Heading, - item or a sentence; at most 24 of 300 characters, empty for a page without notes): the phone app shows them as what is new.

Licence

MPL-2.0 (LICENSE). The artwork is NBTFoundry's, under MPL-2.0.

About

NBTFoundry's landing page and the application catalog the phone app reads

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Sponsor this project

Packages

Contributors

Languages