A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
desktop: fix tests on linux
Abdullah Atta087c4042257b
diff --git a/apps/desktop/__tests__/utils.ts b/apps/desktop/__tests__/utils.tsindex ae86f5edb..bdc331b66 100644--- a/apps/desktop/__tests__/utils.ts+++ b/apps/desktop/__tests__/utils.ts@@ -115,7 +115,8 @@ async function buildApp({const args = [`--config electron-builder.config.js`,- `--c.extraMetadata.productName=${productName}`+ `--c.extraMetadata.productName=${productName}`,+ "--publish=never"];if (version) args.push(`--c.extraMetadata.version=${version}`);diff --git a/apps/desktop/electron-builder.config.js b/apps/desktop/electron-builder.config.jsindex 247c4e5d6..784af8986 100644--- a/apps/desktop/electron-builder.config.js+++ b/apps/desktop/electron-builder.config.js@@ -31,6 +31,9 @@ const buildFiles = [const productName = process.env.NN_PRODUCT_NAME || "Notesnook";const appId = process.env.NN_APP_ID || "org.streetwriters.notesnook";const outputDir = process.env.NN_OUTPUT_DIR || "output";+const linuxExecutableName = process.env.NN_PRODUCT_NAME+ ? process.env.NN_PRODUCT_NAME.toLowerCase().replace(/\s+/g, "-")+ : "notesnook";const year = new Date().getFullYear();module.exports = {@@ -153,7 +156,7 @@ module.exports = {category: "Office",icon: "assets/icons/app.icns",description: "Your private note taking space",- executableName: "notesnook",+ executableName: linuxExecutableName,desktop: {actions: [{