mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-01-09 04:27:53 +08:00
fix jar launching
This commit is contained in:
parent
042c999e1b
commit
acba392533
@ -36,9 +36,9 @@ pub fn run_command(command: String) {
|
||||
#[tauri::command]
|
||||
pub fn run_jar(path: String, execute_in: String, java_path: String) {
|
||||
let command = if java_path.is_empty() {
|
||||
format!("java -jar {}", path)
|
||||
format!("java -jar \"{}\"", path)
|
||||
} else {
|
||||
format!("\"{}\" -jar {}", java_path, path)
|
||||
format!("\"{}\" -jar \"{}\"", java_path, path)
|
||||
};
|
||||
|
||||
// Open the program from the specified path.
|
||||
|
Loading…
Reference in New Issue
Block a user