mirror of https://github.com/Tim-Paik/neutauri.git
fix: Parent folders are now automatically created when exporting artifacts
This commit is contained in:
parent
7555958627
commit
f3b45d106d
|
@ -30,6 +30,7 @@ pub fn bundle(config_path: String) -> std::io::Result<()> {
|
|||
Some(path) => data::normalize_path(&path.join(&config.target)),
|
||||
None => data::normalize_path(&config.target),
|
||||
};
|
||||
fs::create_dir_all(target.parent().unwrap_or_else(|| std::path::Path::new("/")))?;
|
||||
let target = if target.extension() == None && cfg!(windows) {
|
||||
target.with_extension("exe")
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue