From a2ed32e201aa2760019330f104b9e2d6e1be65b9 Mon Sep 17 00:00:00 2001 From: HJfod <60038575+HJfod@users.noreply.github.com> Date: Wed, 5 Oct 2022 15:15:35 +0300 Subject: [PATCH] make package place `resources` in `resources/mod.id` --- src/package.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/package.rs b/src/package.rs index cf969a3..587448e 100644 --- a/src/package.rs +++ b/src/package.rs @@ -233,8 +233,8 @@ fn create_package(config: &mut Config, root_path: &Path, binaries: Vec, fs::copy(root_path.join("mod.json"), working_dir.join("mod.json")).unwrap(); // Resource directory - let resource_dir = working_dir.join("resources"); - fs::create_dir(&resource_dir).unwrap(); + let resource_dir = working_dir.join("resources").join(&mod_file_info.id); + fs::create_dir_all(&resource_dir).unwrap(); // Setup cache let mut cache_bundle = cache::get_cache_bundle(&output);