Skip to content

latest.yml overwritten when building multiple architectures#145

Merged
simonhamp merged 2 commits into
NativePHP:mainfrom
gwleuverink:main
Dec 18, 2024
Merged

latest.yml overwritten when building multiple architectures#145
simonhamp merged 2 commits into
NativePHP:mainfrom
gwleuverink:main

Conversation

@gwleuverink
Copy link
Copy Markdown
Contributor

This PR addresses two issues:

  1. After the latest script update from publish:mac-arm to publish:mac-arm64 the change was not reflected in the publish:mac script
  2. When publishing for all mac architectures simultaneously it runs the publish:mac-arm & publish:mac-arm64 in sequence. This caused the latest-mac.yml file to be overwritten on the second run.

This second point prevents the auto-update feature to detect new releases. I've changed the publish:mac script to build for both architectures in a single process. This fixes the issue.

Check out this issue on the electron-builder repo for more info.

Arguably the same should be done for the Windows & Linux build commands. Will add that if you are okay with this change @simonhamp

Copy link
Copy Markdown
Member

@simonhamp simonhamp left a comment

Choose a reason for hiding this comment

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

Wonderful!

@simonhamp simonhamp merged commit 7f7013e into NativePHP:main Dec 18, 2024
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