@@ -2,7 +2,7 @@ use crate::helpers::{
2
2
app_paths:: { app_dir, tauri_dir} ,
3
3
config:: { get as get_config, reload as reload_config} ,
4
4
manifest:: rewrite_manifest,
5
- Logger , TauriScript ,
5
+ Logger ,
6
6
} ;
7
7
8
8
use notify:: { watcher, DebouncedEvent , RecursiveMode , Watcher } ;
@@ -12,9 +12,6 @@ use shared_child::SharedChild;
12
12
use std:: {
13
13
env:: set_current_dir,
14
14
ffi:: OsStr ,
15
- fs:: { create_dir_all, File } ,
16
- io:: Write ,
17
- path:: PathBuf ,
18
15
process:: { exit, Child , Command } ,
19
16
sync:: {
20
17
mpsc:: { channel, Receiver } ,
@@ -102,20 +99,6 @@ impl Dev {
102
99
103
100
rewrite_manifest ( config. clone ( ) ) ?;
104
101
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
-
119
102
let ( child_wait_tx, child_wait_rx) = channel ( ) ;
120
103
let child_wait_rx = Arc :: new ( Mutex :: new ( child_wait_rx) ) ;
121
104
0 commit comments