diff --git a/public/img/launch_option.png b/public/img/launch_option.png new file mode 100644 index 0000000..f682a48 Binary files /dev/null and b/public/img/launch_option.png differ diff --git a/public/img/properties.png b/public/img/properties.png index 86cb811..3aa1a8c 100644 Binary files a/public/img/properties.png and b/public/img/properties.png differ diff --git a/src-tauri/src/commands/install/launch_options.rs b/src-tauri/src/commands/install/launch_options.rs index c51d810..59550dc 100644 --- a/src-tauri/src/commands/install/launch_options.rs +++ b/src-tauri/src/commands/install/launch_options.rs @@ -32,6 +32,7 @@ pub async fn unix_launch_option_setup( let run_bepinex_sh_path = Path::new(game_path).join("run_bepinex.sh"); let run_bepinex_sh_path_str = run_bepinex_sh_path.to_str().unwrap(); + let perms = fs::metadata(&run_bepinex_sh_path); if perms.is_err() { println!("Failed to make {} executable", run_bepinex_sh_path_str); @@ -39,9 +40,12 @@ pub async fn unix_launch_option_setup( } let mut perms = perms.unwrap().permissions(); perms.set_mode(0o755); // rwxr-xr-x - match fs::set_permissions("path", perms) { - Err(_) => { - println!("Failed to make {} executable", run_bepinex_sh_path_str); + match fs::set_permissions(run_bepinex_sh_path_str, perms) { + Err(err) => { + println!( + "Failed to make {} executable: {}", + run_bepinex_sh_path_str, err + ); } _ => {} diff --git a/src/pages/Operation/Install.svelte b/src/pages/Operation/Install.svelte index 07f0dd7..5db3761 100644 --- a/src/pages/Operation/Install.svelte +++ b/src/pages/Operation/Install.svelte @@ -63,13 +63,8 @@ {:else if lastInstallErr == InstallErr.WBMUnzipFailed} Failed to unzip WBM :( {:else if lastInstallErr == InstallErr.LaunchOptionNotSet} - - Copy and paste the following text to steam launch option: " - {launhOptionString}" - -
- - + +
+
where to find property settings +
+ + where to find launch option + +
+