1
0
mirror of https://github.com/Tim-Paik/neutauri.git synced 2024-10-12 23:29:41 +00:00

fixed user data dir

This commit is contained in:
2022-02-04 00:03:50 +08:00
parent 4cdfccef05
commit 9be31e0968
2 changed files with 25 additions and 4 deletions

View File

@ -46,6 +46,11 @@ fn main() -> wry::Result<()> {
Some(path) => data::normalize_path(&path.join(&config.target)),
None => data::normalize_path(&config.target),
};
let target = if target.extension() == None && cfg!(windows) {
target.with_extension("exe")
} else {
target
};
if target.extension() == Some(std::ffi::OsStr::new("neu")) {
data::pack(arg)?;
return Ok(());