@@ -61,16 +61,29 @@ console.log(`[doctor:release] Platform=${process.platform} Node=${process.versio
6161// 1) Integridad de proyecto
6262checkFileExists ( 'package.json' ) ;
6363checkFileExists ( 'src-tauri/tauri.conf.json' ) ;
64- checkFileExists ( 'src-tauri/bin/yt-dlp.exe' , false ) ;
65- checkFileExists ( 'src-tauri/bin/ffmpeg.exe' , false ) ;
64+ if ( process . platform === 'win32' ) {
65+ checkFileExists ( 'src-tauri/bin/yt-dlp.exe' , false ) ;
66+ checkFileExists ( 'src-tauri/bin/ffmpeg.exe' , false ) ;
67+ } else {
68+ addResult (
69+ 'file:src-tauri/bin/*.exe' ,
70+ true ,
71+ 'Skip en no-Windows (binarios .exe no aplican en este target)' ,
72+ false
73+ ) ;
74+ }
6675
6776// 2) Permisos de escritura para build
6877checkWritableDir ( 'dist' ) ;
6978checkWritableDir ( 'src-tauri/target' ) ;
7079
7180// 3) Capacidad de spawn (requisito duro para vite/esbuild)
72- checkSpawn ( 'cmd.exe' , [ '/c' , 'echo' , 'spawn-ok' ] ) ;
73- checkSpawn ( 'node' , [ '-v' ] ) ;
81+ if ( process . platform === 'win32' ) {
82+ checkSpawn ( 'cmd.exe' , [ '/c' , 'echo' , 'spawn-ok' ] ) ;
83+ } else {
84+ checkSpawn ( 'sh' , [ '-lc' , 'echo spawn-ok' ] ) ;
85+ }
86+ checkSpawn ( process . execPath , [ '-v' ] ) ;
7487
7588// 4) Sugerencia para bundles Linux
7689if ( process . platform !== 'linux' ) {
0 commit comments