MCPcopy Create free account
hub / github.com/appdevforall/CodeOnTheGo / assetsBatch

Function assetsBatch

app/build.gradle.kts:1158–1177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1156 )
1157
1158fun assetsBatch(
1159 projectDir: File,
1160 project: Project,
1161 variant: String,
1162) {
1163 if (isCiCd) {
1164 val tmpDir = File(projectDir, ".tmp/assets")
1165 tmpDir.mkdirs()
1166 project.logger.lifecycle("Downloading $variant assets → ${tmpDir.absolutePath}")
1167 project.exec {
1168 commandLine(
1169 "scp",
1170 "-r",
1171 "$scpServer:public_html/dev-assets/$variant/",
1172 tmpDir.absolutePath,
1173 )
1174 }
1175 project.logger.lifecycle("SCP batch downloaded $variant assets → ${tmpDir.absolutePath}")
1176 }
1177}
1178
1179fun stagedFileFor(
1180 asset: Asset,

Callers 1

build.gradle.ktsFile · 0.85

Calls 1

lifecycleMethod · 0.45

Tested by

no test coverage detected