added zip support, pkg-fmt override

swapped CI to build zips for windows
This commit is contained in:
ryan 2021-04-08 18:39:54 +12:00
parent 94ad0db41d
commit 1c25b1346f
7 changed files with 160 additions and 24 deletions

View file

@ -97,11 +97,18 @@ async fn main() -> Result<(), anyhow::Error> {
let manifest = load_manifest_path(manifest_path.join("Cargo.toml"))?;
let package = manifest.package.unwrap();
let (meta, binaries) = (
let (mut meta, binaries) = (
package.metadata.map(|m| m.binstall ).flatten().unwrap_or(PkgMeta::default()),
manifest.bin,
);
// Merge any overrides
if let Some(o) = meta.overrides.remove(&opts.target) {
meta.merge(&o);
}
debug!("Found metadata: {:?}", meta);
// Generate context for URL interpolation
let ctx = Context {
name: opts.name.clone(),