mirror of
https://github.com/Suwayomi/TachideskJUI.git
synced 2025-12-11 15:22:03 +01:00
Use proper cl gradle.properties
This commit is contained in:
7
scripts/SetupClUnix.sh
Normal file
7
scripts/SetupClUnix.sh
Normal 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"
|
||||
9
scripts/SetupClWindows.ps1
Normal file
9
scripts/SetupClWindows.ps1
Normal 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
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user