File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -35,8 +35,10 @@ app.setPath('userData', userDataPath);
3535// Set temp directory based on crash-reporter-directory CLI argument
3636// The crash reporter will store crashes in temp folder so we need
3737// to change that location accordingly.
38- const crashReporterDirectory = args [ 'crash-reporter-directory' ] ;
38+ let crashReporterDirectory = args [ 'crash-reporter-directory' ] ;
3939if ( crashReporterDirectory ) {
40+ crashReporterDirectory = path . normalize ( crashReporterDirectory ) ;
41+
4042 if ( ! fs . existsSync ( crashReporterDirectory ) ) {
4143 try {
4244 fs . mkdirSync ( crashReporterDirectory ) ;
@@ -45,6 +47,7 @@ if (crashReporterDirectory) {
4547 app . exit ( 1 ) ;
4648 }
4749 }
50+ console . log ( `Found --crash-reporter-directory argument. Setting temp directory to be '${ crashReporterDirectory } '` ) ;
4851 app . setPath ( 'temp' , crashReporterDirectory ) ;
4952}
5053
You can’t perform that action at this time.
0 commit comments