File tree Expand file tree Collapse file tree 1 file changed +0
-12
lines changed
Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,6 @@ fn resolve_dist_dir() -> PathBuf {
7070 }
7171
7272 if let Ok ( exe_path) = std:: env:: current_exe ( ) {
73- println ! ( "[web] current_exe: {}" , exe_path. display( ) ) ;
7473 if let Some ( exe_dir) = exe_path. parent ( ) {
7574 add_candidate ( exe_dir. join ( "dist" ) ) ;
7675 add_candidate ( exe_dir. join ( "../dist" ) ) ;
@@ -80,26 +79,15 @@ fn resolve_dist_dir() -> PathBuf {
8079 add_candidate ( exe_dir. join ( "../Resources/dist" ) ) ;
8180 add_candidate ( exe_dir. join ( "../../Resources/dist" ) ) ;
8281 }
83- } else {
84- println ! ( "[web] current_exe: <unavailable>" ) ;
8582 }
8683
8784 add_candidate ( PathBuf :: from ( "dist" ) ) ;
8885
89- for path in & candidates {
90- println ! (
91- "[web] dist candidate: {} (index.html exists: {})" ,
92- path. display( ) ,
93- path. join( "index.html" ) . exists( )
94- ) ;
95- }
96-
9786 let selected = candidates
9887 . into_iter ( )
9988 . find ( |path| path. join ( "index.html" ) . exists ( ) )
10089 . unwrap_or_else ( || PathBuf :: from ( "dist" ) ) ;
10190
102- println ! ( "[web] resolved dist dir: {}" , selected. display( ) ) ;
10391 selected
10492}
10593
You can’t perform that action at this time.
0 commit comments