Skip to content

Commit 3d5364f

Browse files
fix(task-cache): name Android native client downloads .apk
Android clients are cached as the bare APK, not a tarball. Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent cbd72e5 commit 3d5364f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎infra/task-cache/src/NativeClients.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,8 @@ const make = Effect.gen(function* () {
121121
"Content-Length": String(object.size),
122122
"Cache-Control": "no-store",
123123
// agent-device install-from-source picks the archive type from this name.
124-
"Content-Disposition": `attachment; filename="${key.split("/").at(-1)}.tgz"`,
124+
// iOS clients are uploaded as a tarred .app, Android ones as the bare APK.
125+
"Content-Disposition": `attachment; filename="${key.split("/").at(-1)}.${key.startsWith("ios/") ? "tgz" : "apk"}"`,
125126
"X-T3-Digest": object.customMetadata?.digest ?? "",
126127
"X-T3-Build-Ms": object.customMetadata?.buildMs ?? "0",
127128
},

0 commit comments

Comments
 (0)