From 6752457ad80c7022fc4e0468d493000f8f8d63fe Mon Sep 17 00:00:00 2001
From: Geometrically <18202329+Geometrically@users.noreply.github.com>
Date: Tue, 14 Dec 2021 18:08:53 -0700
Subject: [PATCH] Pack format changes (#268)
---
.idea/runConfigurations.xml | 10 ----------
src/validate/pack.rs | 4 ++--
2 files changed, 2 insertions(+), 12 deletions(-)
delete mode 100644 .idea/runConfigurations.xml
diff --git a/.idea/runConfigurations.xml b/.idea/runConfigurations.xml
deleted file mode 100644
index 797acea5..00000000
--- a/.idea/runConfigurations.xml
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/validate/pack.rs b/src/validate/pack.rs
index ee421d4a..34040847 100644
--- a/src/validate/pack.rs
+++ b/src/validate/pack.rs
@@ -106,7 +106,7 @@ pub struct PackValidator;
impl super::Validator for PackValidator {
fn get_file_extensions(&self) -> &[&str] {
- &["zip"]
+ &["mrpack"]
}
fn get_project_types(&self) -> &[&str] {
@@ -126,7 +126,7 @@ impl super::Validator for PackValidator {
archive: &mut ZipArchive>,
) -> Result {
let mut file = archive
- .by_name("index.json")
+ .by_name("modrinth.index.json")
.map_err(|_| ValidationError::InvalidInputError("Pack manifest is missing.".into()))?;
let mut contents = String::new();