Skip to content
TypeScript

fix(task-cache): name Android native client downloads .apk

Julius Marminge3d5364fb06e3
diff --git a/infra/task-cache/src/NativeClients.ts b/infra/task-cache/src/NativeClients.ts
index 897c72adb91..49215de5276 100644
--- a/infra/task-cache/src/NativeClients.ts
+++ b/infra/task-cache/src/NativeClients.ts
@@ -121,7 +121,8 @@ const make = Effect.gen(function* () {
"Content-Length": String(object.size),
"Cache-Control": "no-store",
// agent-device install-from-source picks the archive type from this name.
- "Content-Disposition": `attachment; filename="${key.split("/").at(-1)}.tgz"`,
+ // iOS clients are uploaded as a tarred .app, Android ones as the bare APK.
+ "Content-Disposition": `attachment; filename="${key.split("/").at(-1)}.${key.startsWith("ios/") ? "tgz" : "apk"}"`,
"X-T3-Digest": object.customMetadata?.digest ?? "",
"X-T3-Build-Ms": object.customMetadata?.buildMs ?? "0",
},