Skip to content

Commit

Permalink
make package place resources in resources/mod.id
Browse files Browse the repository at this point in the history
  • Loading branch information
HJfod committed Oct 5, 2022
1 parent 7783ee3 commit a2ed32e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/package.rs
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,8 @@ fn create_package(config: &mut Config, root_path: &Path, binaries: Vec<PathBuf>,
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);
Expand Down

0 comments on commit a2ed32e

Please sign in to comment.