Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

desktop: set APPIMAGE to true when testing linux to allow auto updater to work

Abdullah Atta6d377ded9aa1
diff --git a/apps/desktop/__tests__/utils.ts b/apps/desktop/__tests__/utils.ts
index bdc331b66..c2a3acaa4 100644
--- a/apps/desktop/__tests__/utils.ts
+++ b/apps/desktop/__tests__/utils.ts
@@ -84,7 +84,14 @@ async function buildAndLaunchApp(options?: TestOptions): Promise<AppContext> {
async function launchApp(executablePath: string) {
const app = await electron.launch({
executablePath,
- args: IS_DEBUG ? [] : ["--hidden"]
+ args: IS_DEBUG ? [] : ["--hidden"],
+ env:
+ process.platform === "linux"
+ ? {
+ ...(process.env as Record<string, string>),
+ APPIMAGE: "true"
+ }
+ : (process.env as Record<string, string>)
});
const page = await app.firstWindow();