1
- import { join } from 'path' ;
1
+ import { join , posix } from 'path' ;
2
2
import * as os from 'os' ;
3
3
import { trim } from 'lodash' ;
4
4
import { version } from '../package.json' ;
@@ -18,15 +18,15 @@ const defaultsDir = process.env.RI_BUILD_TYPE === 'ELECTRON' && process['resourc
18
18
19
19
const proxyPath = trim ( process . env . RI_PROXY_PATH , '/' ) ;
20
20
21
- const customPluginsUri = join ( '/' , proxyPath , 'plugins' ) ;
22
- const staticUri = join ( '/' , proxyPath , 'static' ) ;
23
- const tutorialsUri = join ( '/' , proxyPath , 'static' , 'tutorials' ) ;
24
- const customTutorialsUri = join ( '/' , proxyPath , 'static' , 'custom-tutorials' ) ;
25
- const contentUri = join ( '/' , proxyPath , 'static' , 'content' ) ;
26
- const defaultPluginsUri = join ( '/' , proxyPath , 'static' , 'plugins' ) ;
27
- const pluginsAssetsUri = join ( '/' , proxyPath , 'static' , 'resources' , 'plugins' ) ;
21
+ const customPluginsUri = posix . join ( '/' , proxyPath , 'plugins' ) ;
22
+ const staticUri = posix . join ( '/' , proxyPath , 'static' ) ;
23
+ const tutorialsUri = posix . join ( '/' , proxyPath , 'static' , 'tutorials' ) ;
24
+ const customTutorialsUri = posix . join ( '/' , proxyPath , 'static' , 'custom-tutorials' ) ;
25
+ const contentUri = posix . join ( '/' , proxyPath , 'static' , 'content' ) ;
26
+ const defaultPluginsUri = posix . join ( '/' , proxyPath , 'static' , 'plugins' ) ;
27
+ const pluginsAssetsUri = posix . join ( '/' , proxyPath , 'static' , 'resources' , 'plugins' ) ;
28
28
29
- const socketPath = join ( '/' , proxyPath , 'socket.io' ) ;
29
+ const socketPath = posix . join ( '/' , proxyPath , 'socket.io' ) ;
30
30
const dataDir = process . env . RI_BUILD_TYPE === 'ELECTRON' && process [ 'resourcesPath' ]
31
31
? join ( process [ 'resourcesPath' ] , 'data' )
32
32
: join ( __dirname , '..' , 'data' ) ;
0 commit comments