Skip to content

Commit

Permalink
Merge pull request #2 from skoumalcz/fix/windows
Browse files Browse the repository at this point in the history
fixed twine command not executing on windows
  • Loading branch information
diareuse committed Mar 24, 2021
2 parents 1b887e2 + d251367 commit 0d56a9e
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,13 @@ open class StringsGeneratingTask : DefaultTask() {
try {
project.delete(outputDir)

val command = listOf(
val isWindows = System.getProperties()["os.name"]
.toString()
.toLowerCase()
.contains("windows")

val commandPrepend = if (isWindows) listOf("cmd", "/c") else emptyList()
val command = commandPrepend + listOf(
"twine", "generate-all-localization-files",
"-n$outputFileName",
"-f$format",
Expand Down

0 comments on commit 0d56a9e

Please sign in to comment.