This repository was archived by the owner on Aug 15, 2023. It is now read-only.
File tree 3 files changed +18
-6
lines changed
3 files changed +18
-6
lines changed Original file line number Diff line number Diff line change 27
27
target : ['deb']
28
28
category : Network
29
29
30
+ mac :
31
+ target : ['dmg']
32
+ category : ' public.app-category.utilities'
33
+
30
34
win :
31
35
target : ['portable']
Original file line number Diff line number Diff line change 1
- export const DEFAULT_BASE_PATH = process . cwd ( ) ;
1
+ import os from 'os' ;
2
+ import * as path from 'path' ;
3
+
4
+ export const DEFAULT_BASE_PATH = path . resolve (
5
+ os . homedir ( ) ,
6
+ '.guardoni/electron'
7
+ ) ;
2
8
export const DEFAULT_SERVER = 'https://youtube.tracking.exposed/api' ;
3
- export const DEFAULT_EXTENSION_DIR = [
9
+ export const DEFAULT_EXTENSION_DIR = path . resolve (
4
10
DEFAULT_BASE_PATH ,
5
- 'build/ extension' ,
6
- ] . join ( '/' ) ;
11
+ 'extension'
12
+ ) ;
7
13
8
14
export const DEFAULT_LOAD_FOR = 3000 ;
Original file line number Diff line number Diff line change @@ -16,9 +16,10 @@ import { AppEnv } from '../AppEnv';
16
16
import { GetEvents } from './events/renderer.events' ;
17
17
import { createGuardoniWindow } from './windows/GuardoniWindow' ;
18
18
import packageJson from '../../package.json' ;
19
+ import { DEFAULT_BASE_PATH } from './config' ;
19
20
20
- app . setAppLogsPath ( path . resolve ( os . homedir ( ) , `.config/ guardoni/logs ` ) ) ;
21
- app . setPath ( 'userData' , path . resolve ( os . homedir ( ) , `.config/ guardoni/data ` ) ) ;
21
+ app . setPath ( 'userData' , path . resolve ( os . homedir ( ) , `.guardoni/electron/data ` ) ) ;
22
+ app . setAppLogsPath ( path . resolve ( os . homedir ( ) , `.guardoni/electron/logs ` ) ) ;
22
23
23
24
// load env from .env file shipped with compiled code
24
25
dotenv . config ( {
@@ -109,6 +110,7 @@ export const run = async (): Promise<void> => {
109
110
headless : true ,
110
111
verbose : false ,
111
112
backend : env . BACKEND ,
113
+ basePath : DEFAULT_BASE_PATH ,
112
114
} ,
113
115
} ) . register ( ) ;
114
116
} )
You can’t perform that action at this time.
0 commit comments