diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 41adba3f..545e605f 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -33,6 +33,7 @@ "icons/icon.ico" ], "macOS": { + "signingIdentity": "9MGK3X58YN", "minimumSystemVersion": "14.6" } } diff --git a/src/backend/tauri/tauriBackend.ts b/src/backend/tauri/tauriBackend.ts index c295c695..2d02ce7a 100644 --- a/src/backend/tauri/tauriBackend.ts +++ b/src/backend/tauri/tauriBackend.ts @@ -5,6 +5,7 @@ import { open as fileDialog } from '@tauri-apps/plugin-dialog' import { readFile, stat } from '@tauri-apps/plugin-fs' import { platform } from '@tauri-apps/plugin-os' import { open } from '@tauri-apps/plugin-shell' +import dayjs from 'dayjs' import * as E from 'fp-ts/lib/Either' import BackendInterface from 'src/backend/backendInterface' import { OHPKM } from 'src/types/pkm/OHPKM' @@ -148,7 +149,7 @@ export const TauriBackend: BackendInterface = { const recentSaves = recentSavesResult.right - recentSaves[saveRef.filePath.raw] = saveRef + recentSaves[saveRef.filePath.raw] = { ...saveRef, lastOpened: dayjs().unix() * 1000 } return TauriInvoker.writeStorageFileJSON('recent_saves.json', recentSaves as JSONObject) }, removeRecentSave: async (filePath: string): Promise> => {