Add build warning for non-debug desktop builds (#38932)
When building in profile or release mode on desktop, add a prominent warning that it's actually a debug build. This is to help address issues with people being unaware of the current state of builds due to following third-party guides rather than official documentation. macOS is not included since PRs are in flight for macOS release support.
This commit is contained in:
@@ -42,6 +42,15 @@ Future<void> buildWindows(WindowsProject windowsProject, BuildInfo buildInfo, {S
|
||||
'Please run `flutter doctor` for more details.');
|
||||
}
|
||||
|
||||
if (!buildInfo.isDebug) {
|
||||
const String warning = '🚧 ';
|
||||
printStatus(warning * 20);
|
||||
printStatus('Warning: Only debug is currently implemented for Windows. This is effectively a debug build.');
|
||||
printStatus('See https://github.com/flutter/flutter/issues/38477 for details and updates.');
|
||||
printStatus(warning * 20);
|
||||
printStatus('');
|
||||
}
|
||||
|
||||
final String buildScript = fs.path.join(
|
||||
Cache.flutterRoot,
|
||||
'packages',
|
||||
|
||||
Reference in New Issue
Block a user