Skip to content

Commit

Permalink
Improve code
Browse files Browse the repository at this point in the history
  • Loading branch information
tuomas2 committed Jan 18, 2024
1 parent e830446 commit 1ad4946
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ val npmUpgrade by tasks.registering(Exec::class) {
outputs.file("$jsDir/node_modules/.bin/npm")
workingDir = file(jsDir)
// Workaround for F-droid, which has buggy npm version 5.8, that always fails when installing packages.
if (System.getProperty("os.name").toLowerCase(Locale.ROOT).contains("windows")) {
if (System.getProperty("os.name").lowercase(Locale.ROOT).contains("windows")) {
commandLine("npx.cmd", "npm@${npmVersion}", "ci", "--save-dev", "npm@${npmVersion}")
}
else {
Expand All @@ -84,7 +84,7 @@ val npmInstall by tasks.registering(Exec::class) {
outputs.dir("$jsDir/node_modules")

workingDir = file(jsDir)
if (System.getProperty("os.name").toLowerCase(Locale.ROOT).contains("windows")) {
if (System.getProperty("os.name").lowercase(Locale.ROOT).contains("windows")) {
commandLine("$rootDir/app/$jsDir/node_modules/.bin/npm.cmd", "ci")
}
else {
Expand Down Expand Up @@ -113,7 +113,7 @@ val jsBuild by tasks.registering(Exec::class) {
"build-debug"
}
workingDir = file(jsDir)
if (System.getProperty("os.name").toLowerCase(Locale.ROOT).contains("windows")) {
if (System.getProperty("os.name").lowercase(Locale.ROOT).contains("windows")) {
commandLine("$rootDir/app/$jsDir/node_modules/.bin/npm.cmd", "run", buildCmd)
}
else {
Expand Down

0 comments on commit 1ad4946

Please sign in to comment.