Create polished demo videos without editing skills. Mac/Windows/Linux
Fix CI ffmpeg bundling for release builds
webadderall1db6626e5e34
diff --git a/.github/workflows/build.yml b/.github/workflows/build.ymlindex d79a2b24..2060a534 100644--- a/.github/workflows/build.yml+++ b/.github/workflows/build.yml@@ -19,6 +19,13 @@ jobs:- name: Install dependenciesrun: 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 dependenciesrun: npx electron-builder install-app-deps@@ -56,6 +63,13 @@ jobs:- name: Install dependenciesrun: 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 dependenciesrun: npx electron-builder install-app-deps@@ -90,6 +104,13 @@ jobs:- name: Install dependenciesrun: 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 dependenciesrun: |sudo apt-get update@@ -116,5 +137,3 @@ jobs:release/**/*.AppImagerelease/latest-linux.ymlretention-days: 30--diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex bd5ec255..7cbb2c18 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -129,6 +129,13 @@ jobs:- name: Install dependenciesrun: 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 dependenciesrun: npx electron-builder install-app-deps@@ -209,6 +216,13 @@ jobs:- name: Install dependenciesrun: 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 dependenciesrun: npx electron-builder install-app-deps@@ -347,6 +361,13 @@ jobs:- name: Install dependenciesrun: 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 outputshell: pwshrun: |@@ -406,6 +427,13 @@ jobs:- name: Install dependenciesrun: 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 outputrun: rm -rf node_modules/uiohook-napi/build