🎥 Make videos programmatically with React
Merge branch 'main' into get-browser-executable
Jonny Burger1c84f80c86eb
diff --cc packages/renderer/src/browser/BrowserFetcher.tsindex 80c052f2a8,8f4cf31164..14942b0e44--- a/packages/renderer/src/browser/BrowserFetcher.ts+++ b/packages/renderer/src/browser/BrowserFetcher.ts@@@ -21,32 -22,34 +21,32 @@@ import * as path from 'node:path'import extractZip from 'extract-zip';import {promisify} from 'node:util';-import {assert} from './assert';import {downloadFile} from '../assets/download-file';+import {makeFileExecutableIfItIsNot} from '../compositor/make-file-executable';import type {LogLevel} from '../log-level';import {Log} from '../logger';+import type {DownloadBrowserProgressFn} from '../options/on-browser-download';import {getDownloadsCacheDir} from './get-download-destination';-const downloadURLs: Record<Platform, string> = {- linux64:- 'https://storage.googleapis.com/chrome-for-testing-public/123.0.6312.86/linux64/chrome-headless-shell-linux64.zip',- 'mac-x64':- 'https://storage.googleapis.com/chrome-for-testing-public/123.0.6312.86/mac-x64/chrome-headless-shell-mac-x64.zip',- 'mac-arm64':- 'https://storage.googleapis.com/chrome-for-testing-public/123.0.6312.86/mac-arm64/chrome-headless-shell-mac-arm64.zip',- win64:- 'https://storage.googleapis.com/chrome-for-testing-public/123.0.6312.86/win64/chrome-headless-shell-win64.zip',-};+const TESTED_VERSION = '123.0.6312.86';- type Platform = 'linux' | 'mac-x64' | 'mac-arm64' | 'win64';+ type Platform = 'linux64' | 'mac-x64' | 'mac-arm64' | 'win64';-function getChromeDownloadUrl(platform: Platform): string {- return downloadURLs[platform];+function getChromeDownloadUrl({+ platform,+ version,+}: {+ platform: Platform;+ version: string | null;+}): string {+ return `https://storage.googleapis.com/chrome-for-testing-public/${+ version ?? TESTED_VERSION+ }/${platform}/chrome-headless-shell-${platform}.zip`;}-const readdirAsync = fs.promises.readdir;const mkdirAsync = fs.promises.mkdir;const unlinkAsync = promisify(fs.unlink.bind(fs));-const chmodAsync = promisify(fs.chmod.bind(fs));function existsAsync(filePath: string): Promise<boolean> {return new Promise((resolve) => {diff --cc packages/renderer/src/get-local-browser-executable.tsindex 5d6eff5250,7c3dac1f21..c7bcefc802--- a/packages/renderer/src/get-local-browser-executable.ts+++ b/packages/renderer/src/get-local-browser-executable.ts@@@ -37,7 -119,7 +37,7 @@@ export const getLocalBrowserExecutableif (status.type === 'no-browser') {throw new TypeError('No browser found for rendering frames! Please open a GitHub issue and describe ' +-- 'how you reached this error: https://github.com/remotion-dev/remotion/issues',++ 'how you reached this error: https://remotion.dev/issue',);}