Skip to content

Commit 9027efc

Browse files
committed
ci(release): preparar sidecars embebidos cross-platform y mantener recursos binarios en bundles
1 parent 965fa89 commit 9027efc

2 files changed

Lines changed: 27 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,16 @@ jobs:
6565
- name: Instalar dependencias npm
6666
run: npm ci
6767

68+
- name: Preparar sidecars embebidos (Windows)
69+
shell: pwsh
70+
run: |
71+
New-Item -ItemType Directory -Force src-tauri/bin | Out-Null
72+
Invoke-WebRequest -Uri "https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp.exe" -OutFile "src-tauri/bin/yt-dlp.exe"
73+
Copy-Item "src-tauri/bin/yt-dlp.exe" "src-tauri/bin/yt-dlp" -Force
74+
choco install ffmpeg -y --no-progress
75+
Copy-Item "C:\\ProgramData\\chocolatey\\bin\\ffmpeg.exe" "src-tauri/bin/ffmpeg.exe" -Force
76+
Copy-Item "src-tauri/bin/ffmpeg.exe" "src-tauri/bin/ffmpeg" -Force
77+
6878
- name: Doctor release (preflight)
6979
run: npm run doctor:release
7080

@@ -134,6 +144,17 @@ jobs:
134144
- name: Instalar dependencias npm
135145
run: npm ci
136146

147+
- name: Preparar sidecars embebidos (Linux)
148+
run: |
149+
sudo apt-get update
150+
sudo apt-get install -y yt-dlp ffmpeg
151+
mkdir -p src-tauri/bin
152+
cp /usr/bin/yt-dlp src-tauri/bin/yt-dlp
153+
cp /usr/bin/ffmpeg src-tauri/bin/ffmpeg
154+
# Placeholders para rutas .exe declaradas en recursos (no usadas en runtime Linux)
155+
printf "placeholder-yt-dlp-exe-linux\n" > src-tauri/bin/yt-dlp.exe
156+
printf "placeholder-ffmpeg-exe-linux\n" > src-tauri/bin/ffmpeg.exe
157+
137158
- name: Doctor release (preflight)
138159
run: npm run doctor:release
139160

src-tauri/tauri.conf.json

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

0 commit comments

Comments
 (0)