@@ -2,7 +2,7 @@ use crate::helpers::{
22 app_paths:: { app_dir, tauri_dir} ,
33 config:: { get as get_config, reload as reload_config} ,
44 manifest:: rewrite_manifest,
5- Logger , TauriScript ,
5+ Logger ,
66} ;
77
88use notify:: { watcher, DebouncedEvent , RecursiveMode , Watcher } ;
@@ -12,9 +12,6 @@ use shared_child::SharedChild;
1212use std:: {
1313 env:: set_current_dir,
1414 ffi:: OsStr ,
15- fs:: { create_dir_all, File } ,
16- io:: Write ,
17- path:: PathBuf ,
1815 process:: { exit, Child , Command } ,
1916 sync:: {
2017 mpsc:: { channel, Receiver } ,
@@ -102,20 +99,6 @@ impl Dev {
10299
103100 rewrite_manifest ( config. clone ( ) ) ?;
104101
105- // __tauri.js
106- {
107- let config_guard = config. lock ( ) . unwrap ( ) ;
108- let config_ = config_guard. as_ref ( ) . unwrap ( ) ;
109- let tauri_script = TauriScript :: new ( )
110- . global_tauri ( config_. build . with_global_tauri )
111- . get ( ) ;
112- let tauri_dir_path = PathBuf :: from ( & config_. build . dist_dir ) ;
113- let tauri_script_path = tauri_dir_path. join ( "__tauri.js" ) ;
114- create_dir_all ( tauri_dir_path) ?;
115- let mut tauri_script_file = File :: create ( tauri_script_path) ?;
116- tauri_script_file. write_all ( tauri_script. as_bytes ( ) ) ?;
117- }
118-
119102 let ( child_wait_tx, child_wait_rx) = channel ( ) ;
120103 let child_wait_rx = Arc :: new ( Mutex :: new ( child_wait_rx) ) ;
121104
0 commit comments