Skip to content

Add macOS auto-update publishing and runtime checks#97

Merged
alecmocatta merged 4 commits into
mainfrom
am
Jun 12, 2026
Merged

Add macOS auto-update publishing and runtime checks#97
alecmocatta merged 4 commits into
mainfrom
am

Conversation

@alecmocatta

Copy link
Copy Markdown
Collaborator

No description provided.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jun 12, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
flashtype-website ce00098 Commit Preview URL

Branch Preview URL
Jun 12 2026, 01:31 AM

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 545008be14

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

release/*.dmg
release/*.zip
release/*.zip.blockmap
release/latest-mac.yml

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Generate the macOS updater manifest before uploading it

In this workflow, the build step still runs pnpm run package:mac, whose script is electron-builder --mac --publish never (package.json:15). The electron-builder CLI docs define never as “never publish”, and the auto-update docs place latest-mac.yml generation/upload in the publish flow; this newly listed glob therefore has no manifest to attach for tag releases, leaving the new runtime updater without the channel file it queries. Use the publishing build path (or otherwise explicitly generate the metadata) before attaching latest-mac.yml.

Useful? React with 👍 / 👎.

Comment thread electron/main.mjs
Comment on lines +129 to +130
if (!app.isPackaged || process.env.FLASHTYPE_DISABLE_AUTO_UPDATE === "1") {
return;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Require signing before enabling macOS auto-updates

For the macOS artifacts this enables, electron-builder.yml still sets mac.identity: null and the release workflow's signature verification is diagnostic/continue-on-error, so releases can be unsigned. Electron-updater's macOS support requires a signed app, so in those releases this path can download an update and show the Restart prompt, but Squirrel.Mac will reject the install. Gate setupAutoUpdates() to signed builds or make signing a required part of the release before enabling it.

Useful? React with 👍 / 👎.

@alecmocatta alecmocatta merged commit c1b3fd9 into main Jun 12, 2026
3 checks passed
@alecmocatta alecmocatta deleted the am branch June 12, 2026 01:42
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