Download & update packages, e.g. from GitHub releases. Features:
- uses GitHub CLI
gh(required) & token, avoiding rate limits - can detect updates even for fixed release URLs / tags (e.g.
releases/tag/continuous) using the GitHub API
See release-batch-dlupd --help:
release-batch-dlupd [OPTION]...
--help, -h |
this help ("-?": show defaults) |
|---|---|
--root=ROOT |
all configs (per-package & global) + downloads |
--create=URL |
URL / "true"; creates ROOT first if inexistent. |
--update=PKG |
true (all) / false / PKG subdir path (abs. / relative to ROOT) |
Shorthand (bools): --OPT is --OPT=true, --no-OPT is --OPT=false
ROOT default: my dirname (if I was invoked through a symlink: target's dirname)
https://github.com/OWNER/NAME/releases/latest |
latest release |
|---|---|
https://github.com/OWNER/NAME/releases/tag/TAG |
specific release |
| true |
this package |
--create[=true] configures a package subdir for my latest release, updates & symlinks ROOT/op to my latest version (i.e. ROOT/op implies --root=ROOT).
Register packages by creating ROOT/p/PKG subdirs, where PKG is the download URL (no https). --create=https://... does so automatically (see patterns above; view the results of --create[=true]). Within a subdir:
%cfg%/ |
configure downloads (presence identifies a package subdir) |
|---|---|
%dl%/ |
downloaded assets |
%state%/ |
current package version etc. Wipe it ( |
asset/glob.txt |
one pattern / line. |
|---|---|
bin/preupd |
runs once per package when updates found |
bin/postupd |
runs when downloads complete |
| preupd |
|
|---|---|
| postupd |
|
Alin Mr. (almr.oss at outlook.com) / MIT license