Skip to content

Commit a2ed32e

Browse files
committed
make package place resources in resources/mod.id
1 parent 7783ee3 commit a2ed32e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/package.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,8 @@ fn create_package(config: &mut Config, root_path: &Path, binaries: Vec<PathBuf>,
233233
fs::copy(root_path.join("mod.json"), working_dir.join("mod.json")).unwrap();
234234

235235
// Resource directory
236-
let resource_dir = working_dir.join("resources");
237-
fs::create_dir(&resource_dir).unwrap();
236+
let resource_dir = working_dir.join("resources").join(&mod_file_info.id);
237+
fs::create_dir_all(&resource_dir).unwrap();
238238

239239
// Setup cache
240240
let mut cache_bundle = cache::get_cache_bundle(&output);

0 commit comments

Comments
 (0)