Skip to content

Commit 78f6ab6

Browse files
graycreateclaude
andcommitted
fix: add alt=media parameter to Google Play API download request
- Add ?alt=media to download request URL to get binary content - Without alt=media, API returns HTTP 204 with metadata only - This follows Google APIs media download convention 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 6446464 commit 78f6ab6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -522,11 +522,14 @@ jobs:
522522
523523
# Step 2: Download the APK using the downloadId
524524
print("Downloading APK binary...")
525+
526+
# Use alt=media to get the actual binary content instead of metadata
525527
download_request = service.generatedapks().download(
526528
packageName=package_name,
527529
versionCode=version_code,
528530
downloadId=download_id
529531
)
532+
download_request.uri += '?alt=media'
530533
531534
output_filename = f"v2er-{os.environ['VERSION_NAME']}_google_play_signed.apk"
532535

0 commit comments

Comments
 (0)