File tree 2 files changed +7
-7
lines changed
2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 2
2
3
3
const path = require ( 'path' ) ;
4
4
5
- const HAIN_APPDATA = `${ process . env . LOCALAPPDATA } /hain` ;
6
- const LOCAL_STORAGE_DIR = `${ HAIN_APPDATA } /localStorages` ;
5
+ const HAIN_USER_PATH = `${ process . env . LOCALAPPDATA } /hain-user ` ;
6
+ const LOCAL_STORAGE_DIR = `${ HAIN_USER_PATH } /localStorages` ;
7
7
8
8
const INTERNAL_PLUGIN_REPO = path . join ( __dirname , '../plugins' ) ;
9
- const MAIN_PLUGIN_REPO = path . resolve ( `${ HAIN_APPDATA } /plugins` ) ;
10
- const DEV_PLUGIN_REPO = path . resolve ( `${ HAIN_APPDATA } /devplugins` ) ;
9
+ const MAIN_PLUGIN_REPO = path . resolve ( `${ HAIN_USER_PATH } /plugins` ) ;
10
+ const DEV_PLUGIN_REPO = path . resolve ( `${ HAIN_USER_PATH } /devplugins` ) ;
11
11
12
12
const PLUGIN_REPOS = [
13
13
INTERNAL_PLUGIN_REPO ,
Original file line number Diff line number Diff line change 2
2
3
3
There are two plugin directories for Hain:
4
4
5
- ` MAIN_PLUGIN_REPO ` : "` ${process.env.LOCALAPPDATA}/hain/plugins ` "
6
- ` DEV_PLUGIN_REPO ` : "` ${process.env.LOCALAPPDATA}/hain/devplugins ` "
5
+ ` MAIN_PLUGIN_REPO ` : "` ${process.env.LOCALAPPDATA}/hain-user /plugins ` "
6
+ ` DEV_PLUGIN_REPO ` : "` ${process.env.LOCALAPPDATA}/hain-user /devplugins ` "
7
7
8
- (e.g. C:\\ Users\\ John\\ AppData\\ Local\\ hain\\ ...)
8
+ (e.g. C:\\ Users\\ John\\ AppData\\ Local\\ hain-user \\ ...)
9
9
10
10
` MAIN_PLUGIN_REPO ` is managed by hpm(hain-package-manager). so it's not safe to develop plugins.
11
11
so, you should place your plugins to ` DEV_PLUGIN_REPO ` for the development.
You can’t perform that action at this time.
0 commit comments