Fix CI ffmpeg bundling for release builds

This commit is contained in:
webadderall
2026-04-27 17:09:33 +10:00
parent 7f45a4b77f
commit 55388cb1b6
2 changed files with 49 additions and 2 deletions
+21 -2
View File
@@ -19,6 +19,13 @@ jobs:
- name: Install dependencies
run: npm ci --ignore-scripts
- name: Install bundled FFmpeg binary
run: node node_modules/ffmpeg-static/install.js
- name: Verify bundled FFmpeg binary
run: |
node -e "const fs=require('node:fs'); const ffmpeg=require('ffmpeg-static'); if (typeof ffmpeg !== 'string' || !fs.existsSync(ffmpeg)) { throw new Error('Bundled ffmpeg-static binary is missing: ' + ffmpeg); } console.log('Using bundled ffmpeg binary: ' + ffmpeg);"
- name: Install app dependencies
run: npx electron-builder install-app-deps
@@ -56,6 +63,13 @@ jobs:
- name: Install dependencies
run: npm ci --ignore-scripts
- name: Install bundled FFmpeg binary
run: node node_modules/ffmpeg-static/install.js
- name: Verify bundled FFmpeg binary
run: |
node -e "const fs=require('node:fs'); const ffmpeg=require('ffmpeg-static'); if (typeof ffmpeg !== 'string' || !fs.existsSync(ffmpeg)) { throw new Error('Bundled ffmpeg-static binary is missing: ' + ffmpeg); } console.log('Using bundled ffmpeg binary: ' + ffmpeg);"
- name: Install app dependencies
run: npx electron-builder install-app-deps
@@ -90,6 +104,13 @@ jobs:
- name: Install dependencies
run: npm ci --ignore-scripts
- name: Install bundled FFmpeg binary
run: node node_modules/ffmpeg-static/install.js
- name: Verify bundled FFmpeg binary
run: |
node -e "const fs=require('node:fs'); const ffmpeg=require('ffmpeg-static'); if (typeof ffmpeg !== 'string' || !fs.existsSync(ffmpeg)) { throw new Error('Bundled ffmpeg-static binary is missing: ' + ffmpeg); } console.log('Using bundled ffmpeg binary: ' + ffmpeg);"
- name: Install Linux native build dependencies
run: |
sudo apt-get update
@@ -116,5 +137,3 @@ jobs:
release/**/*.AppImage
release/latest-linux.yml
retention-days: 30
+28
View File
@@ -129,6 +129,13 @@ jobs:
- name: Install dependencies
run: npm ci --ignore-scripts
- name: Install bundled FFmpeg binary
run: node node_modules/ffmpeg-static/install.js
- name: Verify bundled FFmpeg binary
run: |
node -e "const fs=require('node:fs'); const ffmpeg=require('ffmpeg-static'); if (typeof ffmpeg !== 'string' || !fs.existsSync(ffmpeg)) { throw new Error('Bundled ffmpeg-static binary is missing: ' + ffmpeg); } console.log('Using bundled ffmpeg binary: ' + ffmpeg);"
- name: Install app dependencies
run: npx electron-builder install-app-deps
@@ -209,6 +216,13 @@ jobs:
- name: Install dependencies
run: npm ci --ignore-scripts
- name: Install bundled FFmpeg binary
run: node node_modules/ffmpeg-static/install.js
- name: Verify bundled FFmpeg binary
run: |
node -e "const fs=require('node:fs'); const ffmpeg=require('ffmpeg-static'); if (typeof ffmpeg !== 'string' || !fs.existsSync(ffmpeg)) { throw new Error('Bundled ffmpeg-static binary is missing: ' + ffmpeg); } console.log('Using bundled ffmpeg binary: ' + ffmpeg);"
- name: Install app dependencies
run: npx electron-builder install-app-deps
@@ -347,6 +361,13 @@ jobs:
- name: Install dependencies
run: npm ci --ignore-scripts
- name: Install bundled FFmpeg binary
run: node node_modules/ffmpeg-static/install.js
- name: Verify bundled FFmpeg binary
run: |
node -e "const fs=require('node:fs'); const ffmpeg=require('ffmpeg-static'); if (typeof ffmpeg !== 'string' || !fs.existsSync(ffmpeg)) { throw new Error('Bundled ffmpeg-static binary is missing: ' + ffmpeg); } console.log('Using bundled ffmpeg binary: ' + ffmpeg);"
- name: Remove stale uiohook build output
shell: pwsh
run: |
@@ -406,6 +427,13 @@ jobs:
- name: Install dependencies
run: npm ci --ignore-scripts
- name: Install bundled FFmpeg binary
run: node node_modules/ffmpeg-static/install.js
- name: Verify bundled FFmpeg binary
run: |
node -e "const fs=require('node:fs'); const ffmpeg=require('ffmpeg-static'); if (typeof ffmpeg !== 'string' || !fs.existsSync(ffmpeg)) { throw new Error('Bundled ffmpeg-static binary is missing: ' + ffmpeg); } console.log('Using bundled ffmpeg binary: ' + ffmpeg);"
- name: Remove stale uiohook build output
run: rm -rf node_modules/uiohook-napi/build