summarylogtreecommitdiffstats
path: root/fix-resource-locations.diff
blob: 1c368d1a87755230bce4c0517decdedf4dd38f47 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
diff --git a/src/main/main.ts b/src/main/main.ts
index 49ed99a0..83289649 100644
--- a/src/main/main.ts
+++ b/src/main/main.ts
@@ -206,9 +206,7 @@ const createWindow = async () => {
     await installExtensions();
   }
 
-  const RESOURCES_PATH = app.isPackaged
-    ? path.join(process.resourcesPath, 'assets')
-    : path.join(__dirname, '../../assets');
+  const RESOURCES_PATH = path.join(__dirname, '../../../assets');
 
   const getAssetPath = (...paths: string[]): string => {
     return path.join(RESOURCES_PATH, ...paths);
@@ -238,9 +236,7 @@ const createWindow = async () => {
     'userDefines'
   );
 
-  const dependenciesPath = app.isPackaged
-    ? path.join(process.resourcesPath, '../dependencies')
-    : path.join(__dirname, '../../dependencies');
+  const dependenciesPath = path.join(__dirname, '../../../dependencies');
 
   const getPlatformioPath = path.join(dependenciesPath, 'get-platformio.py');
   const platformioStateTempStoragePath = path.join(
@@ -327,13 +323,9 @@ const createWindow = async () => {
   }
   localApiServerEnv.PATH = PATH;
 
-  const devicesPath = app.isPackaged
-    ? path.join(process.resourcesPath, 'devices')
-    : path.join(__dirname, '../../devices');
+  const devicesPath = path.join(__dirname, '../../../devices');
 
-  const localesPath = app.isPackaged
-    ? path.join(process.resourcesPath, 'i18n', 'locales')
-    : path.join(__dirname, '../', 'i18n', 'locales');
+  const localesPath = path.join(__dirname, '../../../', 'i18n', 'locales');
 
   logger.log('localesPath', { localesPath });