cli setup

This commit is contained in:
hardliner66 2024-10-08 23:40:37 +02:00
parent e8ac6c60f1
commit d77fab8d70
2 changed files with 22 additions and 1 deletions

21
.vscode/tasks.json vendored Normal file
View File

@ -0,0 +1,21 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "Inno Setup: Compile Script",
"type": "process",
"command": "ISCC.exe",
"args": [
"setup.iss"
],
"presentation": {
"reveal": "always",
"echo": false
},
"group": {
"kind": "build",
"isDefault": true
}
}
]
}

View File

@ -123,7 +123,7 @@ fn draw(app: &mut App, gfx: &mut Graphics, plugins: &mut Plugins, state: &mut St
if label.clicked() { if label.clicked() {
if let Some(child) = state.open_files.get_mut(&log.path) { if let Some(child) = state.open_files.get_mut(&log.path) {
if let Ok(Some(_)) = child.try_wait() { if let Ok(Some(_)) = child.try_wait() {
*child = Command::new("fast_log_viewer.exe") *child = Command::new("c:/tools/fast_log_viewer.exe")
.arg(&path_text) .arg(&path_text)
.spawn() .spawn()
.unwrap(); .unwrap();