| 1156 | ) |
| 1157 | |
| 1158 | fun 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 | |
| 1179 | fun stagedFileFor( |
| 1180 | asset: Asset, |
no test coverage detected