the big refactor

This commit is contained in:
ryan 2020-12-31 14:41:52 +13:00
parent 5fd78341c8
commit a6c70b41e2
3 changed files with 90 additions and 52 deletions

View file

@ -14,10 +14,10 @@ pub use drivers::*;
pub const TARGET: &'static str = env!("TARGET");
/// Default package path template (may be overridden in package Cargo.toml)
pub const DEFAULT_PKG_URL: &'static str = "{ repo }/releases/download/v{ version }/{ name }-{ target }-v{ version }.{ format }";
pub const DEFAULT_PKG_URL: &'static str = "{ repo }/releases/download/v{ version }/{ name }-{ target }-v{ version }.tgz";
/// Default binary name template (may be overridden in package Cargo.toml)
pub const DEFAULT_BIN_PATH: &'static str = "{ name }-{ target }-v{ version }/{ name }{ format }";
pub const DEFAULT_BIN_PATH: &'static str = "{ name }-{ target }-v{ version }/{ bin }{ format }";
/// Binary format enumeration
@ -96,6 +96,7 @@ pub struct Context {
pub target: String,
pub version: String,
pub format: String,
pub bin: Option<String>,
}
impl Context {