From 9117dc841fa88b799040913386310047c8085c74 Mon Sep 17 00:00:00 2001 From: Tim-Paik Date: Sun, 1 May 2022 13:58:32 +0800 Subject: [PATCH] fix: Parent folders are now automatically created when exporting artifacts --- neutauri_bundler/src/bundle.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/neutauri_bundler/src/bundle.rs b/neutauri_bundler/src/bundle.rs index f885186..e34348b 100644 --- a/neutauri_bundler/src/bundle.rs +++ b/neutauri_bundler/src/bundle.rs @@ -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 {