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

Add SKIP_CODESIGN #786

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft

Add SKIP_CODESIGN #786

wants to merge 2 commits into from

Conversation

L1ghtmann
Copy link
Member

What does this implement/fix? Explain your changes.

Adds variable to toggle codesigning

Does this close any currently open issues?

No

Any relevant logs, error output, etc?

Any other comments?

Seems there have been times when users have wanted to disable automatic codesigning for one reason or another and have had to resort to setting TARGET_CODESIGN to gibberish to get the check to pass without being overridden to a default. Now, setting SKIP_CODESIGN=1 will skip codesigning for the given instance. Confirmed via otool.

Where has this been tested?

Operating System:

Linux (WSL)

Platform:

Target Platform:

Toolchain Version:

SDK Version:

@leptos-null
Copy link
Member

Setting TARGET_CODESIGN to be blank seems to achieve the same thing. Is this necessary?

@L1ghtmann
Copy link
Member Author

Placing this here as it seems this may need further review. The codesign step isn't necessary for all platforms, so TARGET_CODESIGN is set in darwin_head.mk instead of the given platform.mk. The check in instance/rules.mk, which is modified here, handles the codesign command itself, where it's blank for non-Darwin platforms that lack TARGET_CODESIGN. Blanking TARGET_CODESIGN in the Makefile of a project targeting iOS does nothing as darwin_heaad will set it ldid. However, passing TARGET_CODESIGN= to a make invocation for such a project does correctly blank the var and skip the codesigning step. May be able to avoid the addition proposed here if this logic can be adjusted.

@L1ghtmann L1ghtmann marked this pull request as draft December 24, 2023 16:39
Copy link
Member

@leptos-null leptos-null left a comment

Choose a reason for hiding this comment

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

Sounds good to me

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.

None yet

2 participants