From 3a28d097d4448190b649b71d4d8afc428031cec5 Mon Sep 17 00:00:00 2001 From: Pierre Jacquier Date: Thu, 15 Feb 2024 08:29:11 -0500 Subject: [PATCH] Fix isTauri detection and updater bootup --- src-tauri/tauri.conf.json | 4 ++++ src/components/ProjectSidebarMenu.tsx | 2 +- src/lib/isTauri.ts | 4 +--- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 7f8d3b874..c75b9e920 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -52,6 +52,10 @@ "plugins": { "shell": { "open": true + }, + "updater": { + "active": false, + "pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IEUzNzA4MjBEQjFBRTY4NzYKUldSMmFLNnhEWUp3NCtsT21Jd05wQktOaGVkOVp6MUFma0hNTDRDSnI2RkJJTEZOWG1ncFhqcU8K" } }, "productName": "zoo-modeling-app", diff --git a/src/components/ProjectSidebarMenu.tsx b/src/components/ProjectSidebarMenu.tsx index 4c3966aaa..8155e96d7 100644 --- a/src/components/ProjectSidebarMenu.tsx +++ b/src/components/ProjectSidebarMenu.tsx @@ -97,7 +97,7 @@ const ProjectSidebarMenu = ({ data-testid="createdAt" > Created{' '} - {project.entrypointMetadata.atime?.toLocaleDateString()} + {project.entrypointMetadata.birthtime?.toLocaleDateString()}

)} diff --git a/src/lib/isTauri.ts b/src/lib/isTauri.ts index ae174e84a..bdce2309f 100644 --- a/src/lib/isTauri.ts +++ b/src/lib/isTauri.ts @@ -1,8 +1,6 @@ export function isTauri(): boolean { - // TODO: fix it this broke in v2 - return true if (typeof window !== 'undefined') { - return '__TAURI__' in window + return '__TAURI_INTERNALS__' in window } return false }