feat: Add more variables for template ()

Fixed 

 - Add dep target-lexicon v0.12.7
 - Add `target-{family, arch, libc, vendor}` to
   `package.metadata.binstall`.

For `{universal, universal2}-apple-darwin`, the `target-arch` is set to
`universal`.

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2023-06-21 08:05:13 +10:00 committed by GitHub
parent 181b5293e7
commit d8419ea5a2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 210 additions and 115 deletions
crates/binstalk/src

View file

@ -2,6 +2,11 @@ pub mod futures_resolver;
pub mod jobserver_client;
pub mod remote;
pub mod signal;
pub mod target_triple;
pub mod tasks;
pub use binstalk_downloader::{download, gh_api_client};
pub fn is_universal_macos(target: &str) -> bool {
["universal-apple-darwin", "universal2-apple-darwin"].contains(&target)
}