From 4b6ccc60eed804cb0f989746371e0be069ac064e Mon Sep 17 00:00:00 2001 From: Jonas Lukasczyk Date: Wed, 9 Oct 2024 14:44:24 +0200 Subject: [PATCH] v0.0.48 --- package.json | 2 +- packages/main/src/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 0a07b3d..da1014c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ARCitect", - "version": "v0.0.47", + "version": "v0.0.48", "author": "nfdi4plants.org", "description": "Tool to edit Annotated Research Contexts (ARCs).", "private": true, diff --git a/packages/main/src/index.ts b/packages/main/src/index.ts index 2069679..996c4ac 100644 --- a/packages/main/src/index.ts +++ b/packages/main/src/index.ts @@ -49,7 +49,7 @@ const initConfig = async ()=>{ fs.mkdirSync(userDataPath); for(let file of ['ARCitect.json','DataHubs.json']){ - const sourceFile = 'resources/'+file; + const sourceFile = (import.meta.env.DEV ? 'resources' : process.resourcesPath)+'/'+file; const destinationFile = userDataPath+'/'+file; if (!fs.existsSync(destinationFile)) fs.copyFileSync(sourceFile, destinationFile);