Repository navigation
Installation
- bash 4.3 or newer, and the usual tools (
awk,sed,find,df) -
curlfor every mode -
jq(every mode reads its config files with it) -
unzipfor worlds (and for AppImages released as zips;tarfor.tar.*ones) -
sha256sumandsha512sumfor ISOs -
fzf, optional, for the menu and for picking AppImages to remove -
update-desktop-database(desktop-file-utils), optional, to refresh the desktop database after AppImage desktop entries change
Each mode checks for what it needs and says what's missing.
git clone https://github.com/Nykorin/update-tools.git
mkdir -p ~/.local/bin
ln -s "$PWD/update-tools/update-tools" ~/.local/bin/update-toolsThe command finds its lib/ folder through the symlink, so it can be linked from anywhere on your PATH.
Each mode works in one folder, set in ~/.config/update-tools/update-tools.cfg (or under $XDG_CONFIG_HOME), which also says how often an item is checked:
app_dir=~/AppImages
apw_dir=~/Games/Archipelago/custom_worlds
iso_dir=/run/media/me/Ventoy
# skip items checked in the last skip_hours hours (168: weekly); off: check every item every run
skip_checked=on
skip_hours=24The file is read as key=value data, never run as shell code (comments go on their own lines); a leading ~ or $HOME is expanded. AppImages default to ~/AppImages. Worlds and ISOs have no default: until their key is set, their mode stops with a message naming it. -m MODE -r DIR overrides a mode's folder for one run, and update-tools -h settings shows the folders in use.
Without a token GitHub allows 60 API requests an hour, which a long list of items can use up. With one it's 5000, and unchanged release lists cost nothing (the scripts send each list's ETag back).
Put a token (no scopes needed) in $GITHUB_TOKEN, or on the first line of ~/.config/update-tools/github_token with chmod 600. It's sent to api.github.com only, on curl's standard input, so it never shows up in the process list.
Next: Usage, then Adding items.