@@ -219,16 +219,16 @@ pub async fn install_single_version(
219219 }
220220
221221
222- let export_vars = setup_tools ( & app_handle, settings, & paths. idf_path , & paths. actual_version , None ) . await ?;
222+ let ( export_paths , export_vars) = setup_tools ( & app_handle, settings, & paths. idf_path , & paths. actual_version , None ) . await ?;
223223
224224 idf_im_lib:: single_version_post_install (
225225 & paths. activation_script_path . to_string_lossy ( ) . to_string ( ) ,
226226 & paths. idf_path . to_string_lossy ( ) . to_string ( ) ,
227227 & paths. actual_version ,
228228 & paths. tool_install_directory . to_string_lossy ( ) . to_string ( ) ,
229- export_vars ,
229+ export_paths ,
230230 paths. python_venv_path . to_str ( ) ,
231- None , // env_vars
231+ Some ( export_vars ) , // env_vars
232232 & paths. python_path . to_string_lossy ( ) . to_string ( ) ,
233233 false , // create_cmd_bat
234234 false , // offline_installation
@@ -1826,11 +1826,11 @@ pub async fn start_offline_installation(app_handle: AppHandle, archives: Vec<Str
18261826 version : Some ( idf_version. clone ( ) ) ,
18271827 } ) ;
18281828
1829- let export_vars = match setup_tools ( & app_handle, & settings, & paths. idf_path , & paths. actual_version , Some ( offline_archive_dir. path ( ) ) ) . await {
1830- Ok ( vars) => {
1829+ let ( export_paths , export_vars ) = match setup_tools ( & app_handle, & settings, & paths. idf_path , & paths. actual_version , Some ( offline_archive_dir. path ( ) ) ) . await {
1830+ Ok ( ( paths , vars) ) => {
18311831 emit_log_message ( & app_handle, MessageLevel :: Success ,
18321832 rust_i18n:: t!( "gui.offline.tools_configured" ) . to_string ( ) ) ;
1833- vars
1833+ ( paths , vars)
18341834 }
18351835 Err ( err) => {
18361836 let error_msg = rust_i18n:: t!( "gui.offline.tools_setup_failed" , error = err. to_string( ) ) . to_string ( ) ;
@@ -1861,9 +1861,9 @@ pub async fn start_offline_installation(app_handle: AppHandle, archives: Vec<Str
18611861 & paths. idf_path . to_string_lossy ( ) . to_string ( ) ,
18621862 & paths. actual_version ,
18631863 & paths. tool_install_directory . to_string_lossy ( ) . to_string ( ) ,
1864- export_vars ,
1864+ export_paths ,
18651865 paths. python_venv_path . to_str ( ) ,
1866- None ,
1866+ Some ( export_vars ) ,
18671867 & paths. python_path . to_string_lossy ( ) ,
18681868 false , // create_cmd_bat
18691869 true , // is_offline_install
0 commit comments