Added modpack creation and file adding

This commit is contained in:
Daniel Hutzley
2021-12-05 10:41:56 -08:00
parent fe3581756f
commit 5ffddd6c8a
6 changed files with 339 additions and 25 deletions

View File

@@ -11,7 +11,8 @@ use zip::ZipArchive;
use self::{manifest::Manifest, pack::Modpack};
pub mod pack;
mod manifest;
pub mod manifest;
pub mod modrinth_api;
pub const MANIFEST_PATH: &'static str = "index.json";
pub const OVERRIDES_PATH: &'static str = "overrides/";
@@ -45,8 +46,11 @@ pub enum ModpackError {
#[error("Error joining futures: {0}")]
JoinError(#[from] tokio::task::JoinError),
#[error("Error fetching modloader version: {0}")]
#[error("Versioning Error: {0}")]
VersionError(String),
#[error("Error downloading file: {0}")]
FetchError(#[from] reqwest::Error)
}
type ModpackResult<T> = Result<T, ModpackError>;