3 import Pkg.Artifacts: artifact_meta, find_artifacts_toml, load_artifacts_toml
4 import Pkg.BinaryPlatforms: platform_key_abi
7 pkg_uuid = UUID(ARGS[1])
10 artifacts_toml = find_artifacts_toml(dir)
12 if artifacts_toml == nothing
17 platform = platform_key_abi()
19 # Older Julia doesn't provide select_downloadable_artifacts or .pkg/select_artifacts.jl,
20 # so gather the artifacts the old-fashioned way
21 artifact_dict = load_artifacts_toml(artifacts_toml; pkg_uuid=pkg_uuid)
24 for name in keys(artifact_dict)
25 # Get the metadata about this name for the requested platform
26 meta = artifact_meta(name, artifact_dict, artifacts_toml; platform=platform)
28 # If there are no instances of this name for the desired platform, skip it
29 meta === nothing && continue