Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

The bundled binary is x86 only, bail out early on ARM

Manav Rathi9ca8ef9e74ca
diff --git a/desktop/src/main/services/image.ts b/desktop/src/main/services/image.ts
index 957fe81200..db98f86dcb 100644
--- a/desktop/src/main/services/image.ts
+++ b/desktop/src/main/services/image.ts
@@ -79,7 +79,7 @@ export const generateImageThumbnail = async (
const outputFilePath = await makeTempFilePath("jpeg");
- // Construct the command first, it may throw `NotAvailable` on win32.
+ // Construct the command first, it may throw `NotAvailable`.
let quality = 70;
let command = generateImageThumbnailCommand(
inputFilePath,
@@ -138,6 +138,9 @@ const generateImageThumbnailCommand = (
];
case "linux":
+ // The bundled binary is an ELF x86-64 executable.
+ if (process.arch != "x64")
+ throw new Error(CustomErrorMessage.NotAvailable);
return [
imageMagickPath(),
inputFilePath,