mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-04-05 12:12:05 -07:00
fix: fail Linux packaging when libffmpeg staging is missing
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user