Skip to content

Launch at login, complete icon set, run all checks in CI - #1

Open
RobiiAragon wants to merge 1 commit into
mainfrom
improve/audit-2026-11
Open

RobiiAragon wants to merge 1 commit into
mainfrom
improve/audit-2026-11

Conversation

@RobiiAragon

Copy link
Copy Markdown
Owner

Summary

The codebase was already in good shape: Swift 6 with complete strict concurrency, hardened runtime, no sandbox exceptions or entitlements beyond what's needed, and no leaks found (every callback captures self weakly, and the timer uses [weak self] on the main run loop). This PR adds the roadmap item and fixes the only build warnings.

Next level: optional launch at login

  • New Abrir al iniciar sesión item in the secondary-click menu, with a checkmark. Off by default.
  • Uses SMAppService.mainApp (macOS 13+). There is no helper and no LaunchAgent plist.
  • If macOS answers requiresApproval, an alert offers to open System Settings → Login Items. While approval is pending the item stays checked, so another click withdraws the request.
  • The menu item is disabled when macOS can't find the bundle (notFound, e.g. a translocated app).
  • Tests/LoginItemChecks.swift checks the state mapping and toggle logic as a standalone Swift 6 executable. It never registers anything.

Fixes

  • The asset catalog listed icon_16x16@2x, icon_128x128@2x and icon_256x256@2x, but the files were missing (3 build warnings). They are now generated with Tools/GenerateIcon.swift. Release build: 0 Swift and asset warnings.

CI

  • release.yml now runs Tools/check.sh: metrics, the real purge request using a self-owned purgeable page, and the login item. Before, it only ran the metrics check.

Docs

  • README (EN) and README.es.md describe the option. The roadmap item is ticked.

Not changed

  • MARKETING_VERSION stays at 1.0. Bump it when you want the workflow to publish a new release.

Verified locally

Xcode 27.2: universal Release (arm64 + x86_64) BUILD SUCCEEDED, and Tools/check.sh passes.

- SMAppService-based 'Abrir al iniciar sesión' menu toggle (off by default),
  with a System Settings shortcut when macOS requires approval
- Standalone LoginItemChecks for the state mapping (registers nothing)
- Add the three missing @2x AppIcon PNGs (removes asset catalog warnings)
- CI runs Tools/check.sh (metrics, real purge request, login item)
- README (EN/ES) updated
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