Skip to content

Commit d838b78

Browse files
graycreateclaude
andcommitted
fix: use download_media method for Google Play API binary downloads
- Changed from download() to download_media() method - This fixes the HTTP 204 error when downloading signed APKs - download_media() returns the actual media content instead of metadata 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 5597c7d commit d838b78

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -530,15 +530,16 @@ jobs:
530530
531531
# Step 2: Download the APK using the downloadId
532532
print("Downloading APK binary...")
533-
download_request = service.generatedapks().download(
533+
534+
# Execute the download request to get the media content
535+
download_request = service.generatedapks().download_media(
534536
packageName=package_name,
535537
versionCode=version_code,
536538
downloadId=download_id
537539
)
538540
539541
output_filename = f"v2er-{os.environ['VERSION_NAME']}_google_play_signed.apk"
540542
541-
# Execute the download request and save to file
542543
# Use media download with googleapiclient.http to handle binary content
543544
import io
544545
from googleapiclient.http import MediaIoBaseDownload

0 commit comments

Comments
 (0)