Skip to content

Commit 4da646a

Browse files
authored
fix(build): use an older ffmpeg version when packaging (#6070)
1 parent 2ef9b72 commit 4da646a

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

packages/hadron-build/lib/target.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,14 @@ class Target {
196196
arch: this.arch,
197197
electronVersion: this.electronVersion,
198198
sign: null,
199-
afterExtract: [ffmpegAfterExtract]
199+
afterExtract: [(buildPath, electronVersion, platform, arch, done) => {
200+
// TODO(https://github.com/electron/electron/issues/43076): electron
201+
// releases are pointing to a wrong version of ffmpeg codecs right now
202+
// (platform mismatch), there is a fix in progress and we should switch
203+
// asap when it's available, for now just use the ffmpeg from an older
204+
// version
205+
ffmpegAfterExtract(buildPath, '29.4.3', platform, arch, done)
206+
}]
200207
};
201208

202209
validateBuildConfig(this.platform, this.pkg.config.hadron.build[this.platform]);

0 commit comments

Comments
 (0)