-
Notifications
You must be signed in to change notification settings - Fork 7
Make Android APK downloads use dynamic GitHub release URLs #264
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,6 +17,7 @@ interface DownloadInfo { | |
| linuxAppImage: string; | ||
| linuxDeb: string; | ||
| linuxRpm: string; | ||
| androidApk: string; | ||
| }; | ||
| releaseUrl: string; | ||
| } | ||
|
|
@@ -70,7 +71,8 @@ export async function getLatestDownloadInfo(): Promise<DownloadInfo | null> { | |
| macOS: `${baseDownloadUrl}/Maple_${version}_universal.dmg`, | ||
| linuxAppImage: `${baseDownloadUrl}/Maple_${version}_amd64.AppImage`, | ||
| linuxDeb: `${baseDownloadUrl}/Maple_${version}_amd64.deb`, | ||
| linuxRpm: `${baseDownloadUrl}/Maple-${version}-1.x86_64.rpm` | ||
| linuxRpm: `${baseDownloadUrl}/Maple-${version}-1.x86_64.rpm`, | ||
| androidApk: `${baseDownloadUrl}/app-universal-release.apk` | ||
|
Comment on lines
+74
to
+75
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chainVerify that the APK filename matches the GitHub release assets. The Android APK uses a static filename Run the following script to check recent releases for APK files: 🏁 Script executed: #!/bin/bash
# Description: Verify APK filename in GitHub releases
# Fetch the latest release and check for APK assets
gh api repos/OpenSecretCloud/Maple/releases/latest --jq '.assets[] | select(.name | endswith(".apk")) | .name'
# Also check the last 3 releases to see the pattern
echo "--- Last 3 releases APK filenames ---"
gh api repos/OpenSecretCloud/Maple/releases --jq '.[:3] | .[] | {tag: .tag_name, apks: [.assets[] | select(.name | endswith(".apk")) | .name]}'Length of output: 161 Static APK filename not present in the latest release 🤖 Prompt for AI Agents
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @coderabbitai please check again, it was just released There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: Length of output: 1996 @AnthonyRonning, you're absolutely right! ✅ I can confirm that The implementation looks good and will correctly fetch the APK from the latest release. The static filename approach works since your release process consistently uses the same filename for the APK asset. Would you like me to resolve my previous comment? |
||
| }, | ||
| releaseUrl: release.html_url | ||
| }; | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.