}
module.exports = normalize;
+module.exports._debug = function (all) {
+ all = normalize(all);
+ all.releases = all.releases
+ .filter(function (r) {
+ return ['windows', 'macos', 'linux'].includes(r.os) && 'amd64' === r.arch;
+ })
+ .slice(0, 10);
+ return all;
+};
// NOT in order of priority (which would be tar, xz, zip, ...)
module.exports.formats = formats;
module.exports.arches = arches;
You can use `setcap` to allow Caddy to use privileged ports.
```bash
-sudo setcap cap_net_bind_service=+ep $(readlink $(command -v caddy))
+sudo setcap cap_net_bind_service=+ep $(readlink -f $(command -v caddy))
```
**systemd config**
pkg_install() {
# $HOME/.local/opt/keypairs-v0.6.5/bin
- mkdir -p "$pkg_src_bin"
+ mkdir -p "$(dirname $pkg_src_cmd)"
# mv ./keypairs* "$HOME/.local/opt/keypairs-v0.6.5/bin/keypairs"
mv ./"$pkg_cmd_name"* "$pkg_src_cmd"
if (module === require.main) {
module.exports(require('@root/request')).then(function (all) {
all = require('../_webi/normalize.js')(all);
- console.info(JSON.stringify(all));
+ console.info(JSON.stringify(all, null, 2));
});
}
}
pkg_get_current_version() {
- # 'lf version' has output in this format:
+ # 'lf --version' has output in this format:
# r21
# This treats it as a minor version number:
# 0.21.0
if (module === require.main) {
module.exports(require('@root/request')).then(function (all) {
- all = require('../_webi/normalize.js')(all);
- all.releases = all.releases
- .filter(function (r) {
- return (
- ['windows', 'macos', 'linux'].includes(r.os) && 'amd64' === r.arch
- );
- })
- .slice(0, 10);
+ all = require('../_webi/normalize.js')._debug(all);
console.info(JSON.stringify(all, null, 2));
});
}