mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-08-19 12:06:25 +00:00
minor cleanup
This commit is contained in:
@@ -135,6 +135,15 @@ function normalize(all) {
|
||||
}
|
||||
|
||||
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;
|
||||
|
||||
+1
-1
@@ -100,7 +100,7 @@ Using a user named `app` to run your services is common industry convention.
|
||||
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**
|
||||
|
||||
+1
-1
@@ -20,7 +20,7 @@ function __init_keypairs() {
|
||||
|
||||
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"
|
||||
|
||||
@@ -13,6 +13,6 @@ module.exports = function (request) {
|
||||
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));
|
||||
});
|
||||
}
|
||||
|
||||
+1
-1
@@ -30,7 +30,7 @@ function __init_lf() {
|
||||
}
|
||||
|
||||
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
|
||||
|
||||
+1
-8
@@ -19,14 +19,7 @@ module.exports = function (request) {
|
||||
|
||||
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));
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user