Skip to content
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: 5 additions & 1 deletion sentry.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,10 @@ gradle.projectsEvaluated {
def cliExecutable = sentryProps.get("cli.executable", "$reactRoot/node_modules/@sentry/cli/bin/sentry-cli");

workingDir reactRoot

if (Os.isFamily(Os.FAMILY_WINDOWS)) {
cliExecutable = cliExecutable.replaceAll("/","\\\\");
}

def args = [
cliExecutable
Expand Down Expand Up @@ -157,7 +161,7 @@ gradle.projectsEvaluated {
println args
}
if (Os.isFamily(Os.FAMILY_WINDOWS)) {
commandLine("cmd", "/c", *args)
commandLine("cmd", "/c", "node", *args)
} else {
commandLine(*args)
}
Expand Down