mirror of
https://github.com/bisq-network/bisq.git
synced 2025-03-03 18:56:59 +01:00
Adapt Gradle startScript customization logic
Problem: ClassNotFoundError was getting thrown when attempting to run, e.g. the `./bisq-desktop` or `./bisq-pricenode` start scripts. Solution: Gradle's posix start scripts were changed significantly between 6.6.1 and 7.3, including a change to the way the current directory is determined. This change updates the way we customize start script generation to allow running them from the root of the repo. This change only affects the unix / posix variants. The Windows .bat files do not need to be adapted similarly.
This commit is contained in:
parent
d964ded2af
commit
280c2aaa8e
1 changed files with 1 additions and 1 deletions
|
@ -140,7 +140,7 @@ configure([project(':cli'),
|
||||||
|
|
||||||
def unixScriptFile = file("${rootProject.projectDir}/bisq-$applicationName")
|
def unixScriptFile = file("${rootProject.projectDir}/bisq-$applicationName")
|
||||||
unixScriptFile.text = unixScriptFile.text.replace(
|
unixScriptFile.text = unixScriptFile.text.replace(
|
||||||
'cd "`dirname \\"$PRG\\"`/.." >/dev/null', 'cd "`dirname \\"$PRG\\"`" >/dev/null')
|
'APP_HOME=$( cd "${APP_HOME:-./}.." && pwd -P ) || exit', 'APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit')
|
||||||
|
|
||||||
if (applicationName == 'desktop') {
|
if (applicationName == 'desktop') {
|
||||||
def script = file("${rootProject.projectDir}/bisq-$applicationName")
|
def script = file("${rootProject.projectDir}/bisq-$applicationName")
|
||||||
|
|
Loading…
Add table
Reference in a new issue