vscode-extensions: refac personal maintainer tools
Move existing `ms-dotnettools-csharp/update-bin-srcs-lib.sh` bash lib under a `_maintainers` dir which should be used for common maintainer tools (intended to be reused by more than a single extension derivation).
This commit is contained in:
parent
820cc7decc
commit
e059511348
@ -107,11 +107,13 @@ formatExtRuntimeDeps() {
|
||||
|
||||
declare jqQuery
|
||||
jqQuery=$(cat <<'EOF'
|
||||
.runtimeDependencies \
|
||||
| map(select(.platforms[] | in({"linux": null}))) \
|
||||
| map(select(.architectures[] | in({"x86_64": null}))) \
|
||||
| .[] | {(.id + "-" + (.architectures[0]) + "-" + (.platforms[0])): \
|
||||
{installPath, binaries, urls: [.url, .fallbackUrl]}}
|
||||
.runtimeDependencies
|
||||
| map(select(.platforms[] | in({"linux": null})))
|
||||
| map(select(.architectures[] | in({"x86_64": null})))
|
||||
| .[] | {
|
||||
(.id + "__" + (.architectures[0]) + "-" + (.platforms[0])):
|
||||
{installPath, binaries, urls: [.url, .fallbackUrl] | map(select(. != null))}
|
||||
}
|
||||
EOF
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user