:electron: Fix export on mac (#3250)

* fix export on mac

* add release notes
This commit is contained in:
Michael Clark
2024-08-14 13:38:57 +01:00
committed by GitHub
parent ee0156d35d
commit 89b096aa65
2 changed files with 7 additions and 1 deletions

View File

@@ -130,7 +130,7 @@ export function closeDatabase(db: SQL.Database) {
export async function exportDatabase(db: SQL.Database) {
// electron does not support better-sqlite serialize since v21
// save to file and read in the raw data.
const name = `backup-for-export-${uuidv4()}.db`;
const name = `${process.env.ACTUAL_DATA_DIR}/backup-for-export-${uuidv4()}.db`;
await db.backup(name);

View File

@@ -0,0 +1,6 @@
---
category: Bugfix
authors: [MikesGlitch]
---
Fix Export on Mac desktop app