wrun generators are scripts to generate wrun command line arguments
for various tools' releases. Generated arguments will contain -url
s,
and -archive-exe-path
s if applicable.
The scripts are not robust against all kinds of changes that might be occurring in upstream release assets, and may need tweaking at times.
The intent is that they should work with the latest respective tool release, and only that. Generators working with older versions might be found in wrun Git history.
The general usage is:
# set PYTHONPATH=src if running from a wrun git checkout,
# and PYTHONPATH=/usr/share/wrun if from deb or rpm packages.
python3 -m wrun_py.generators.TOOL [VERSION]
...where TOOL
is the tool in question, and VERSION
is the optional version
to generate for, typically the Git tag rather than the numeric
version if they differ. If not provided, version defaults to the latest of
the tool.
When installed from PyPI or deb/rpm packages, there are also
wrun-TOOL-args
wrapper executables installed that effectively run
the above command.
The output is newline separated for readability.
Hint: if embedding to a YAML document as a string, e.g. a CI config,
using line folding (>-
)
the readability can likely be preserved there, too.
Some of the scripts operate on upstream provided checksum files.
They have an option to skip verifying checksums against the actual payloads at
the executable or archive URLs, --skip-verify
.
Some more generators for commonly used tools would be nice to have, contributions welcome!
Some tools for which generators would be nice to have, but cannot be done, at least yet at time of writing.
Unless mentioned otherwise, reasoning is that there is no wrun
runnable asset available for the tool.