-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Use different release profiles for desktop and server builds, adhoc profiles #3693
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
Use different release profiles for desktop and server builds, adhoc profiles #3693
Conversation
I was chatting with the bevy folks about #4168 and they pointed me to some code that lets you create adhoc profiles. They do it here: https://github.com/TheBevyFlock/bevy_cli/blob/main/src%2Fweb%2Fprofiles.rs Since this PR has sat here so long and I've neglected to merge it, I'll adjust it so it doesn't generate profiles anymore, but instead just uses the adhoc profile approach. Sorry for refusing to merge it, but I guess it worked out since we found a better solution. It's worth noting that we should document these profiles. |
In release builds, both desktop and server builds were using the same target and profile so they output their binary to the same location. This was causing either the server or the client to be used for both bundles. This PR fixes the issue by introducing release variants of the desktop and server profiles. Now when the server and desktop targets are built they output to a separate profile folder inside of
/target
Fixes #3689
Fixes #3600
Fixes #3573
Fixes #3884
Fixes #4168