Skip to content

Improve retrieval of main app icon for authorization dialog#2743

Merged
zorgiepoo merged 8 commits into2.xfrom
icon-for-file-auth
Jul 18, 2025
Merged

Improve retrieval of main app icon for authorization dialog#2743
zorgiepoo merged 8 commits into2.xfrom
icon-for-file-auth

Conversation

@zorgiepoo
Copy link
Copy Markdown
Member

@zorgiepoo zorgiepoo commented Jul 16, 2025

Use NSWorkspace to retrieve the main bundle's app icon (the bundle that is doing the updating) for authorization prompts only when Installer Launcher XPC Service is enabled. When this service is disabled, we let the authorization prompt just use the default app icon. This change also removes some no longer needed code (SUBundleIcon).

This will complete tasks for #2738

Misc Checklist

  • My change requires a documentation update on Sparkle's website repository
  • My change requires changes to generate_appcast, generate_keys, or sign_update

Testing

I tested and verified my change by using one or multiple of these methods:

  • Sparkle Test App
  • Unit Tests
  • My own app
  • Other (please specify)

Tested authorization dialog in test app when installer launcher service is enabled and disabled.

macOS version tested:
10.14.6 VM
10.15 VM
15.5 (24F74)
26.0 beta 3 (25A5306g)

@zorgiepoo zorgiepoo added this to the 2.8 milestone Jul 16, 2025
@zorgiepoo zorgiepoo changed the title Icon for file auth Improve retrieving main app icon for authorization dialog Jul 16, 2025
@zorgiepoo zorgiepoo changed the title Improve retrieving main app icon for authorization dialog Improve retrieval of main app icon for authorization dialog Jul 16, 2025
@zorgiepoo zorgiepoo merged commit 0c0317c into 2.x Jul 18, 2025
2 checks passed
@zorgiepoo zorgiepoo deleted the icon-for-file-auth branch July 18, 2025 03:57
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.

1 participant