Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Homebrew builds #21

Merged
merged 4 commits into from
Mar 5, 2021

Conversation

anderscarling
Copy link
Contributor

@anderscarling anderscarling commented Mar 4, 2021

This moves the copying of build product to ./bin/dark-mode from a build phase to the ./build script. This is done to ensure we never copy a non-codesigned binary to ./bin - which is what seems to be the cause of #19.

This would work even without removing the build phase, as the copy from ./build will simply overwrite it. I'm not sure the build phase copy is really useful for other things than release though, and it's a bit quirky - basically it seems to never be codesigned on first build (e.g. after a "Clean build folder" + "build"), but it will then be codesinged on subsequent builds.

If you would like me to update the PR to keep the build phase in, let me know and i'll fix that.

Fixes #19

@sindresorhus sindresorhus changed the title Fix homebrew builds Fix Homebrew builds Mar 5, 2021
@sindresorhus
Copy link
Owner

I'm fine with this, but you have to update the readme.

@anderscarling
Copy link
Contributor Author

@sindresorhus Build instructions in readme are updated, let me know if you think they need further adjustments.

@sindresorhus sindresorhus merged commit f9da245 into sindresorhus:main Mar 5, 2021
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.

dark-mode v3.0.1 does not build on apple silicon
2 participants