Skip to content

Conversation

@beastoin
Copy link
Collaborator

@beastoin beastoin commented Dec 5, 2025

No description provided.

@beastoin beastoin merged commit f92e6d7 into main Dec 5, 2025
1 check passed
@beastoin beastoin deleted the 7g5it_mac_ci branch December 5, 2025 09:46
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

The pull request updates the logic for identifying the Sparkle ZIP file in GitHub releases. It changes the expected filename from a dynamic {version}-{platform}.zip to a static Omi.zip. This change is consistently applied to both the primary search and the fallback mechanism within the _get_sparkle_zip_download_url function. This suggests an adaptation to a new, simplified naming convention for the Sparkle ZIP asset, which aligns with the pull request title "Fix sparkle .zip after refactoring". The comments highlight that this change leads to a misleading function signature for _get_sparkle_zip_download_url because the version and platform parameters are no longer used, recommending their removal for clarity and correctness.

# Look for the Sparkle ZIP file: {version}-{platform}.zip
expected_filename = f"{version}-{platform}.zip"
# Look for the Sparkle ZIP file: Omi.zip
expected_filename = f"Omi.zip"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

This change hardcodes the expected_filename to "Omi.zip". Consequently, the version and platform parameters passed to _get_sparkle_zip_download_url are no longer used in constructing this filename. This creates a misleading function signature, as it implies these parameters are still relevant for identifying the Sparkle ZIP file. This can lead to confusion and potential future correctness issues if the asset naming convention changes or if developers assume these parameters are actively used. Consider updating the function signature to remove these unused parameters if they are not needed for any other part of the Sparkle ZIP identification logic.

for asset in assets:
asset_name = asset.get("name", "")
if asset_name.endswith(f"-{platform}.zip"):
if asset_name.endswith(f"Omi.zip"):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

This fallback logic also hardcodes the asset name suffix to "Omi.zip", further confirming that the platform parameter is no longer used in determining the Sparkle ZIP file. This reinforces the concern about the misleading function signature of _get_sparkle_zip_download_url regarding the version and platform parameters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants