Skip to content
This repository has been archived by the owner on Jul 21, 2024. It is now read-only.

Commit

Permalink
🐛Fixed frontend package deleted after ant.get download
Browse files Browse the repository at this point in the history
  • Loading branch information
eritpchy committed Dec 24, 2023
1 parent b899f00 commit 33c7c9a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion gradle/frontend.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ abstract class DownloadTask extends DefaultTask {
def remoteVersion = parsedJson.name
println("remoteVersion: ${remoteVersion}")
def destInfo = parsedJson.assets[0]
def distFile = new File(project.buildDir, "resources/main/com/github/zxbu/webdavteambition/frontend.tar.xz")
def distFile = new File(project.buildDir, "tmp/resources/main/com/github/zxbu/webdavteambition/frontend.tar.xz")
distFile.parentFile.mkdirs()

if (isUpToDated(distFile.parentFile, remoteVersion)) {
Expand Down Expand Up @@ -46,6 +46,14 @@ abstract class DownloadTask extends DefaultTask {
}
}

sourceSets {
main {
resources {
srcDirs "src/main/resources", "build/tmp/resources/main"
}
}
}

tasks["processResources"].dependsOn (tasks.create(name: "downloadFrontend", type: DownloadTask) {
url = "https://xbimg.xdow.net/upload/aliyundrive-web/dist/latest"
})

0 comments on commit 33c7c9a

Please sign in to comment.