Manually add DEBUG constant to nightly builds
Description
It seems that the updater button has completely vanished from nightly/bleeding edge builds, presumably because DEBUG isn't being defined correctly. Not sure if we should apply this to other workflows, too.
Caveats
Not sure if there's some other configuration thing I'm missing, or if this is how the compiler is meant to work.
Download the artifacts for this pull request here:
GUI:
- GUI-windows-latest-isBundled-false-isSingleFile-false
- GUI-windows-latest-isBundled-false-isSingleFile-true
CLI:
This seems wrong, the -c configuration should already handle DEBUG being set. Maybe it needs to be -c DEBUG instead of -c Debug?
I don't think so, the configuration name should be Debug. Not sure what's supposed to control DEBUG being defined, but it's definitely not in any project files right now. Some docs on https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/preprocessor-directives suggest that it should be defined automatically, but it's clearly not happening right now. Maybe it's just an IDE thing for some reason?