Remove .bat scripts unless user OS is Windows

Previously, start scripts were generated for both *nix and Windows
platforms, resulting in an unnecessarily cluttered root directory.

With this change, both types of script are still generated, but Windows
.bat scripts are deleted immediately afterward if the user is running a
non-Windows OS (unfortunately, there was no clean way to suppress the
generation of these scripts in the Gradle StartScripts API).

See #1956
This commit is contained in:
Chris Beams 2018-11-24 10:07:39 +01:00
parent d372a9e4b3
commit 46ee12dd62
No known key found for this signature in database
GPG Key ID: 3D214F8F5BC5ED73
2 changed files with 7 additions and 0 deletions

View File

@ -91,6 +91,9 @@ configure([project(':desktop'),
from "$destinationDir/lib"
into "${rootProject.projectDir}/lib"
}
if (osdetector.os != 'windows')
delete fileTree(dir: rootProject.projectDir, include: 'bisq-*.bat')
}
}

View File

@ -15,6 +15,8 @@ You do _not_ need to install Gradle to complete the following command. The `grad
./gradlew build
If on Windows use the `gradlew.bat` script instead.
## Run
@ -22,6 +24,8 @@ Bisq executables are now available in the root project directory. Run Bisq Deskt
./bisq-desktop
If on Windows use the `bisq-desktop.bat` script instead.
## See also