fix: fail Linux packaging when libffmpeg staging is missing

This commit is contained in:
2026-04-05 10:55:55 -07:00
parent fa89c43f74
commit 1a70a59ab1
3 changed files with 40 additions and 13 deletions

View File

@@ -17,8 +17,13 @@ async function stageLinuxAppImageSharedLibrary(
try {
await deps.access(sourceLibraryPath);
} catch {
return false;
} catch (error) {
if (error && typeof error === 'object' && error.code === 'ENOENT') {
throw new Error(
`Linux packaging requires ${LINUX_FFMPEG_LIBRARY} at ${sourceLibraryPath} so AppImage child processes can resolve it.`,
);
}
throw error;
}
const targetLibraryDir = path.join(context.appOutDir, 'usr', 'lib');