# ex (single file): ./caddy-v2.0.0-linux-amd64.exe
mv ./"$pkg_cmd_name"* "$pkg_common_cmd"
+ chmod a+x "$pkg_common_cmd"
# ex (single file, nested in directory): ./rg/rg-v13-linux-amd64
#mv ./"$pkg_cmd_name"*/"$pkg_cmd_name"* "$pkg_commend_cmd"
+ #chmod a+x "$pkg_common_cmd"
popd 2>&1 >/dev/null
}
# Adds "$HOME/.local/bin" to PATH
webi_path_add "$pkg_common_bin"
}
+
+pkg_post_install_message() {
+ echo "Installed 'caddy' v$WEBI_VERSION as $pkg_common_cmd"
+}
if (module === require.main) {
module.exports(require('@root/request')).then(function (all) {
+ all = require('../_common/normalize.js')(all);
console.info(JSON.stringify(all));
});
}
# (this will be "$HOME/.local/bin/gitea" by default)
mkdir -p "$pkg_common_bin"
mv ./"$pkg_cmd_name"* "$pkg_common_cmd"
+ chmod a+x "$pkg_common_cmd"
popd 2>&1 >/dev/null
}
if (module === require.main) {
module.exports(require('@root/request')).then(function (all) {
+ all = require('../_common/normalize.js')(all);
console.info(JSON.stringify(all));
});
}
# (this will be "$HOME/.local/opt/node-v$WEBI_VERSION" by default)
mkdir -p "$pkg_common_bin"
mv ./"$pkg_cmd_name"* "$pkg_common_cmd"
+ chmod a+x "$pkg_common_cmd"
popd 2>&1 >/dev/null
}
# ex (single file): ./caddy-v13-linux-amd64.exe
#mv ./"$pkg_cmd_name"* "$pkg_common_cmd"
+ #chmod a+x "$pkg_common_cmd"
# ex (single file, nested in directory): ./rg/rg-v13-linux-amd64
#mv ./"$pkg_cmd_name"*/"$pkg_cmd_name"* "$pkg_commend_cmd"
+ #chmod a+x "$pkg_common_cmd"
popd 2>&1 >/dev/null
}
if (module === require.main) {
getAllReleases(require('@root/request')).then(function (all) {
+ all = require('../_common/normalize.js')(all);
console.info(JSON.stringify(all));
//console.info(JSON.stringify(all, null, 2));
});