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:
Raymond Gauthier 2021-10-04 22:58:57 -04:00
parent 820cc7decc
commit e059511348
No known key found for this signature in database
GPG Key ID: 88FBFBAC9B57497A

View File

@ -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
)