mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-05-31 13:02:46 +00:00
Compare commits
11 Commits
feat-shell
...
add-ffprob
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3319dffe94 | ||
|
|
2fe6824472 | ||
|
|
4510a61cf0 | ||
|
|
0da4b5d7cd | ||
|
|
948030b9cb | ||
|
|
faaed1d2ec | ||
|
|
6875648daf | ||
|
|
e8ba56e75f | ||
|
|
1f858bca4d | ||
|
|
f10be58d64 | ||
|
|
79ded46033 |
@@ -853,7 +853,7 @@ fn_envman_init_load_sh() { (
|
||||
touch -a ~/.config/envman/PATH.env
|
||||
touch -a ~/.config/envman/ENV.env
|
||||
touch -a ~/.config/envman/alias.env
|
||||
touch -a ~/.config/envman/function.env
|
||||
touch -a ~/.config/envman/function.sh
|
||||
|
||||
# ENV first because we may use it in PATH
|
||||
test -z "\${ENVMAN_LOAD:-}" && . ~/.config/envman/ENV.env
|
||||
@@ -862,7 +862,7 @@ test -z "\${ENVMAN_LOAD:-}" && . ~/.config/envman/PATH.env
|
||||
export ENVMAN_LOAD='loaded'
|
||||
|
||||
# function first because we may use it in alias
|
||||
test -z "\${g_envman_load_sh:-}" && . ~/.config/envman/function.env
|
||||
test -z "\${g_envman_load_sh:-}" && . ~/.config/envman/function.sh
|
||||
test -z "\${g_envman_load_sh:-}" && . ~/.config/envman/alias.env
|
||||
|
||||
g_envman_load_sh='loaded'
|
||||
@@ -918,14 +918,14 @@ fn_envman_init_load_fish() { (
|
||||
touch -a ~/.config/envman/PATH.env
|
||||
touch -a ~/.config/envman/ENV.env
|
||||
touch -a ~/.config/envman/alias.env
|
||||
touch -a ~/.config/envman/function.env
|
||||
touch -a ~/.config/envman/function.fish
|
||||
|
||||
not set -q ENVMAN_LOAD; and source ~/.config/envman/ENV.env
|
||||
not set -q ENVMAN_LOAD; and source ~/.config/envman/PATH.env
|
||||
|
||||
set -x ENVMAN_LOAD 'loaded'
|
||||
|
||||
not set -q g_envman_load_fish; and source ~/.config/envman/function.env
|
||||
not set -q g_envman_load_fish; and source ~/.config/envman/function.fish
|
||||
not set -q g_envman_load_fish; and source ~/.config/envman/alias.env
|
||||
|
||||
set -g g_envman_load_fish 'loaded'
|
||||
|
||||
45
ffprobe/releases.js
Normal file
45
ffprobe/releases.js
Normal file
@@ -0,0 +1,45 @@
|
||||
'use strict';
|
||||
|
||||
var path = require('path');
|
||||
|
||||
var github = require('../_common/github.js');
|
||||
var owner = 'eugeneware';
|
||||
var repo = 'ffmpeg-static';
|
||||
|
||||
module.exports = function (request) {
|
||||
return github(request, owner, repo).then(function (all) {
|
||||
all.releases = all.releases
|
||||
.filter(function (rel) {
|
||||
let isFfmpeg = rel.name.includes('ffmpeg');
|
||||
if (!isFfmpeg) {
|
||||
return;
|
||||
}
|
||||
|
||||
// remove README and LICENSE
|
||||
return !['.README', '.LICENSE'].includes(path.extname(rel.name));
|
||||
})
|
||||
.map(function (rel) {
|
||||
rel.version = rel.version.replace(/^b/, '');
|
||||
|
||||
if (/win32/.test(rel.name)) {
|
||||
rel.os = 'windows';
|
||||
rel.ext = 'exe';
|
||||
}
|
||||
if (/ia32/.test(rel.name)) {
|
||||
rel.arch = '386';
|
||||
} else if (/x64/.test(rel.name)) {
|
||||
rel.arch = 'amd64';
|
||||
}
|
||||
|
||||
return rel;
|
||||
});
|
||||
return all;
|
||||
});
|
||||
};
|
||||
|
||||
if (module === require.main) {
|
||||
module.exports(require('@root/request')).then(function (all) {
|
||||
all = require('../_webi/normalize.js')(all);
|
||||
console.info(JSON.stringify(all));
|
||||
});
|
||||
}
|
||||
@@ -118,7 +118,7 @@ fn_polite_sudo() { (
|
||||
# this is user interactive, ask the user,defaulting to yes
|
||||
echo ""
|
||||
#shellcheck disable=SC2005 # echo for newline
|
||||
echo "$(t_attn 'Use sudo for the following? [Y/n])')"
|
||||
echo "$(t_attn 'Use sudo for the following? [Y/n]')"
|
||||
echo "${a_cmds}"
|
||||
read -r b_yes < /dev/tty
|
||||
|
||||
|
||||
@@ -152,7 +152,7 @@ __webi_main() {
|
||||
my_checksum="$(
|
||||
fn_checksum
|
||||
)"
|
||||
my_version=v1.2.0
|
||||
my_version=v1.2.8
|
||||
printf "\e[35mwebi\e[32m %s\e[0m Copyright 2020+ AJ ONeal\n" "${my_version} (${my_checksum})"
|
||||
printf " \e[36mhttps://webinstall.dev/webi\e[0m\n"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user