Use proper cl gradle.properties

This commit is contained in:
Syer10
2021-06-06 17:24:25 -04:00
parent d042bac708
commit cbcfc5d92b
6 changed files with 42 additions and 2 deletions

7
scripts/SetupClUnix.sh Normal file
View File

@@ -0,0 +1,7 @@
if [ "$(basename "$(pwd)")" = "scripts" ]; then
cd ..
fi
echo "Writing ci gradle.properties"
[ ! -d "/path/to/dir" ] && mkdir ".gradle"
cp ".github/runner-files/ci-gradle.properties" ".gradle/gradle.properties"

View File

@@ -0,0 +1,9 @@
if ($(Split-Path -Path (Get-Location) -Leaf) -eq "scripts" ) {
Set-Location ..
}
Write-Output "Writing ci gradle.properties"
if (!(Test-Path -Path ".gradle")) {
New-Item -ItemType Directory -Force -Path ".gradle" -ErrorAction SilentlyContinue
}
Copy-Item ".github/runner-files/ci-gradle.properties" ".gradle/gradle.properties" -Force

View File

@@ -21,6 +21,10 @@ pushd "$TACHIDESK_FOLDER" || exit
echo "Setting up android.jar"
AndroidCompat/getAndroid.sh
echo "Writing ci gradle.properties"
[ ! -d "/path/to/dir" ] && mkdir ".gradle"
cp ".github/runner-files/ci-gradle.properties" ".gradle/gradle.properties"
echo "Building Tachidesk.jar"
./gradlew :server:shadowJar -x :webUI:copyBuild

View File

@@ -21,6 +21,12 @@ Push-Location $tachidesk_folder.FullName
Write-Output "Setting up android.jar"
&"./AndroidCompat/getAndroid.ps1"
Write-Output "Writing ci gradle.properties"
if (!(Test-Path -Path ".gradle")) {
New-Item -ItemType Directory -Force -Path ".gradle" -ErrorAction SilentlyContinue
}
Copy-Item ".github/runner-files/ci-gradle.properties" ".gradle/gradle.properties" -Force
Write-Output "Building Tachidesk.jar"
&"./gradlew" :server:shadowJar -x :webUI:copyBuild