diff options
| author | Danilo M. <danix@danix.xyz> | 2026-08-08 20:34:31 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-08-08 20:34:31 +0200 |
| commit | 8094c6725824d2dc836e390a655c0a0e9c0745f7 (patch) | |
| tree | dd28abe2b7fe6ce76cf0037fedc7c6ce210341fe /README.md | |
| parent | fcbbf31343b9d1e441d3ae24900386dc03c4706f (diff) | |
| download | danix-nvchecker-8094c6725824d2dc836e390a655c0a0e9c0745f7.tar.gz danix-nvchecker-8094c6725824d2dc836e390a655c0a0e9c0745f7.zip | |
Track Typora
Typora ships no git repo and no per-platform feed beyond its changelog: the
Sparkle dev_update.xml carries the macOS dev channel and reports a different
version, and /releases/all scrapes an unrelated number, so the stanza reads
the version headings on /releases/linux.
It is an Electron app unpacked under /opt, so it is neither a package, an
AppImage nor a flatpak and none of the existing installed-version sources see
it. Add an OPT_JSON map reading the version out of a JSON file, keyed by
stanza name. Typora is currently its only entry; /opt was checked for others
before adding a generic scanner.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -88,12 +88,15 @@ automatically when output is not a terminal. anything itself, so it is fast enough to run on every login; refreshing that file is nvchecker's job. -**installed** is resolved from three sources, in order: +**installed** is resolved from four sources, in order: -1. `/var/log/packages` for Slackware packages -2. `~/.local/state/appimage-updater/installed.json` for AppImages managed by +1. the `OPT_JSON` map, for apps unpacked under `/opt` that are none of the + below and carry their version in a JSON file (Electron apps such as Typora). + Each entry is a stanza name mapped to `<path>:<jq filter>`. +2. `/var/log/packages` for Slackware packages +3. `~/.local/state/appimage-updater/installed.json` for AppImages managed by [appimage-updater](https://git.danix.xyz/appimage-updater/) -3. `flatpak list` for flatpak apps +4. `flatpak list` for flatpak apps **repo** is the `VERSION=` line of `<repo>/<category>/<pkg>/<pkg>.info` across the configured SlackBuild repositories. |
