From f1ce1e9b60f9f23b42fa7455bfef37abe17eecfa Mon Sep 17 00:00:00 2001 From: Abdullah Atta Date: Fri, 28 Feb 2025 12:37:50 +0500 Subject: [PATCH] desktop: enable staging mode during tests to disable code signing --- apps/desktop/__tests__/utils.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/apps/desktop/__tests__/utils.ts b/apps/desktop/__tests__/utils.ts index 552a69e63..49f3188ab 100644 --- a/apps/desktop/__tests__/utils.ts +++ b/apps/desktop/__tests__/utils.ts @@ -123,6 +123,7 @@ async function buildApp({ stdio: IS_DEBUG ? "inherit" : "ignore", env: { ...process.env, + NOTESNOOK_STAGING: "true", NN_BUILD_ROOT: buildRoot, NN_PRODUCT_NAME: productName, NN_APP_ID: `com.notesnook.test.${productName}`, @@ -135,7 +136,9 @@ async function buildApp({ "..", output, process.platform === "linux" - ? "linux-unpacked" + ? process.arch === "arm64" + ? "linux-arm64-unpacked" + : "linux-unpacked" : process.platform === "darwin" ? process.arch === "arm64" ? `mac-arm64/${productName}.app/Contents/MacOS/` @@ -155,5 +158,5 @@ function makeid(length: number) { result += characters.charAt(Math.floor(Math.random() * charactersLength)); counter += 1; } - return result; + return result.toLowerCase(); }