Repository navigation
Cfg reference
Each mode's folder holds the scripts' own hidden folder (hidden, so Archipelago and Ventoy pass it over):
.update-tools/
├── db/ the cfgs (NAME.json), and your own desktop entries (NAME.desktop, AppImages)
├── icons/ AppImages only: the extracted icons; link ~/.icons to it for icons your theme lacks
└── tmp/ staged downloads, and the old version during an install (for ISOs, only then)
Each item has a cfg in its mode's folder, as .update-tools/db/NAME.json: a JSON object whose values are text. The scripts read only the keys below (any other is reported and ignored), and keep what they write themselves under "state". JSON has no comments, so a cfg can hold a "comment", which the scripts ignore; update-tools make puts the link there.
// custom_worlds/.update-tools/db/7dtd_world.json
{
"manager": "github",
"repo": "OrcThrowman/7-Days-to-Die-AP",
"repo_filename": "*.apworld"
}// .update-tools/db/archlinux.json in the ISO folder
{
"folder": "Linux/ArchLinux",
"manager": "static",
"url": "https://geo.mirror.pkgbuild.com/iso/latest/archlinux-x86_64.iso",
"checksum": "sha256sums.txt"
}(The // lines only say where each file goes; they can't be in the file.) In JSON a \ or " inside a value needs a backslash: "repo_regex": "SoH-.*(\\.appimage|-Linux\\.zip)".
| Manager | Required | Optional |
|---|---|---|
github |
repo (owner/name), and repo_filename (a glob) or repo_regex (a regex matched against the whole file name) |
allow_prereleases (auto, the default, takes a stable release first; false; true) |
gitlab |
repo_url (the project's gitlab.com address), and repo_filename or repo_regex
|
|
static |
url (a fixed download; redirects are followed) |
|
jsonfeed |
feed_url, channel, arch_key, download_base (with {minor_version} and {filename}) |
|
dirlist |
url with * or […] in folder and file parts, resolved from the server's folder listings |
download_suffix (SourceForge: /download) |
dateprobe |
url with {date}, for releases with no listing |
probe_days (how far back to look, default 90) |
ISO cfgs also need:
| Key | Meaning |
|---|---|
folder |
the ISO's folder, relative to the ISO folder (iso_dir) |
checksum |
the checksum file: a name or glob next to the ISO, or a URL; {iso} stands for the ISO's file name |
checksum_save |
optional: the local name for the saved checksum file |
Worlds can set apworld_filename (a glob) to pick one .apworld out of a release zip that holds several.
| Key | Meaning |
|---|---|
icon_name |
the icon name the desktop entry uses, for an icon theme that names the app differently |
install_name |
install the AppImage under this name instead of its upstream one ({name} is the cfg's name; .AppImage is added if missing). An app already installed under another name is renamed on its next run |
An AppImage's desktop entry is built from the .desktop file inside it. To use your own instead, put it next to the cfg as .update-tools/db/NAME.desktop; {appimage} in it stands for the installed AppImage's path (Exec=env DESKTOPINTEGRATION=1 {appimage} %u). It's written whenever it changes, on the next run.
The scripts add their own keys under "state" after each check (current_version, installed_file, last_checked, ETags, digests, iso_hash). Leave those alone; a cfg without installed_file means "not installed yet", so the item is installed on the next run.