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 resources path for macos
Abdullah Attadb60299c5449
diff --git a/apps/web/desktop/asset-manager.ts b/apps/web/desktop/asset-manager.tsindex 3d049f81d..c3f96ee78 100644--- a/apps/web/desktop/asset-manager.ts+++ b/apps/web/desktop/asset-manager.ts@@ -39,10 +39,9 @@ type FlexibleIcon<TFormat extends Formats> = TFormat extends "ico"const RESOURCES_DIR = isDevelopment()? process.cwd()- : path.join(- path.dirname(process.execPath),- process.platform === "darwin" ? "Resources" : "resources"- );+ : process.platform === "darwin"+ ? path.normalize(path.join(path.dirname(process.execPath), "..", "Resources"))+ : path.join(path.dirname(process.execPath), "resources");const prefixes = ["", ".dark"];const icons = [diff --git a/apps/web/desktop/config/window-state.ts b/apps/web/desktop/config/window-state.tsindex a122c4e1d..eb07ce743 100644--- a/apps/web/desktop/config/window-state.ts+++ b/apps/web/desktop/config/window-state.ts@@ -53,8 +53,8 @@ export class WindowState {storageKey: "windowState",maximize: true,fullScreen: true,- defaultHeight: 800,- defaultWidth: 600,+ defaultWidth: 1024,+ defaultHeight: 700,...options};