Skip to content
This repository has been archived by the owner on Jan 4, 2019. It is now read-only.

Address changes of crash reporter #4

Merged
merged 1 commit into from
Nov 3, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ var check = function(channel = 'dev') {
debug('processing squirrel command `%s`', cmd);
var target = path.basename(process.execPath);

let userDataDirArg = '--user-data-dir=brave-' + channel
let userDataDirArg = '--user-data-dir-name=brave-' + channel

if (cmd === '--squirrel-install') {
if (channel === 'dev') {
run(['--createShortcut=' + target + ''], app.quit);
} else {
run(['--createShortcut=' + target + '', '--process-start-args=' + '--user-data-dir=brave-' + channel], app.quit);
run(['--createShortcut=' + target + '', '--process-start-args=' + '--user-data-dir-name=brave-' + channel], app.quit);
}
return true;
}
Expand All @@ -55,7 +55,7 @@ var check = function(channel = 'dev') {
if (channel === 'dev') {
run(['--createShortcut=' + target + ''], app.quit);
} else {
run(['--createShortcut=' + target + '', '--process-start-args=' + '--user-data-dir=brave-' + channel], app.quit);
run(['--createShortcut=' + target + '', '--process-start-args=' + '--user-data-dir-name=brave-' + channel], app.quit);
}
}
return true;
Expand Down