Skip to content

Commit 965fa89

Browse files
committed
fix(release-linux): eliminar recursos .exe del bundle y exigir artifacts reales en CI
1 parent c21076e commit 965fa89

3 files changed

Lines changed: 19 additions & 10 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ jobs:
102102
src-tauri/target/release/bundle/nsis/*.exe
103103
src-tauri/target/release/bundle/msi/*.msi
104104
retention-days: 7
105-
if-no-files-found: warn
105+
if-no-files-found: error
106106

107107
# ----------------------------------------------------------
108108
# JOB 2: Compilar en Linux y subir artifact
@@ -171,7 +171,7 @@ jobs:
171171
src-tauri/target/release/bundle/appimage/*.AppImage
172172
src-tauri/target/release/bundle/deb/*.deb
173173
retention-days: 7
174-
if-no-files-found: warn
174+
if-no-files-found: error
175175

176176
# ----------------------------------------------------------
177177
# JOB 3: Crear GitHub Release

scripts/doctor-release.cjs

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,16 +61,29 @@ console.log(`[doctor:release] Platform=${process.platform} Node=${process.versio
6161
// 1) Integridad de proyecto
6262
checkFileExists('package.json');
6363
checkFileExists('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
6877
checkWritableDir('dist');
6978
checkWritableDir('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
7689
if (process.platform !== 'linux') {

src-tauri/tauri.conf.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,6 @@
2929
"active": true,
3030
"targets": "all",
3131
"publisher": "D4vRAM369",
32-
"resources": [
33-
"bin/yt-dlp.exe",
34-
"bin/ffmpeg.exe"
35-
],
3632
"icon": [
3733
"icons/32x32.png",
3834
"icons/128x128.png",

0 commit comments

Comments
 (0)