Update link for missing desktop projects (#76123)
This commit is contained in:
parent
f49956598b
commit
13d051f2f4
@ -39,7 +39,7 @@ Future<void> buildLinux(
|
||||
}) async {
|
||||
if (!linuxProject.cmakeFile.existsSync()) {
|
||||
throwToolExit('No Linux desktop project configured. See '
|
||||
'https://flutter.dev/desktop#add-desktop-support-to-an-existing-app '
|
||||
'https://flutter.dev/desktop#add-desktop-support-to-an-existing-flutter-app '
|
||||
'to learn about adding Linux support to a project.');
|
||||
}
|
||||
|
||||
|
@ -34,7 +34,7 @@ Future<void> buildMacOS({
|
||||
}) async {
|
||||
if (!flutterProject.macos.xcodeWorkspace.existsSync()) {
|
||||
throwToolExit('No macOS desktop project configured. '
|
||||
'See https://flutter.dev/desktop#add-desktop-support-to-an-existing-app '
|
||||
'See https://flutter.dev/desktop#add-desktop-support-to-an-existing-flutter-app '
|
||||
'to learn about adding macOS support to a project.');
|
||||
}
|
||||
|
||||
|
@ -35,7 +35,7 @@ Future<void> buildWindows(WindowsProject windowsProject, BuildInfo buildInfo, {
|
||||
if (!windowsProject.cmakeFile.existsSync()) {
|
||||
throwToolExit(
|
||||
'No Windows desktop project configured. See '
|
||||
'https://flutter.dev/desktop#add-desktop-support-to-an-existing-app '
|
||||
'https://flutter.dev/desktop#add-desktop-support-to-an-existing-flutter-app '
|
||||
'to learn about adding Windows support to a project.');
|
||||
}
|
||||
|
||||
|
@ -115,7 +115,9 @@ void main() {
|
||||
|
||||
expect(createTestCommandRunner(command).run(
|
||||
const <String>['build', 'linux', '--no-pub']
|
||||
), throwsToolExit(message: 'No Linux desktop project configured'));
|
||||
), throwsToolExit(message: 'No Linux desktop project configured. See '
|
||||
'https://flutter.dev/desktop#add-desktop-support-to-an-existing-flutter-app '
|
||||
'to learn about adding Linux support to a project.'));
|
||||
}, overrides: <Type, Generator>{
|
||||
Platform: () => linuxPlatform,
|
||||
FileSystem: () => fileSystem,
|
||||
|
@ -118,7 +118,9 @@ void main() {
|
||||
|
||||
expect(createTestCommandRunner(command).run(
|
||||
const <String>['build', 'macos', '--no-pub']
|
||||
), throwsToolExit(message: 'No macOS desktop project configured'));
|
||||
), throwsToolExit(message: 'No macOS desktop project configured. See '
|
||||
'https://flutter.dev/desktop#add-desktop-support-to-an-existing-flutter-app '
|
||||
'to learn about adding macOS support to a project.'));
|
||||
}, overrides: <Type, Generator>{
|
||||
Platform: () => macosPlatform,
|
||||
FileSystem: () => fileSystem,
|
||||
|
@ -138,7 +138,9 @@ void main() {
|
||||
|
||||
expect(createTestCommandRunner(command).run(
|
||||
const <String>['windows', '--no-pub']
|
||||
), throwsToolExit(message: 'No Windows desktop project configured'));
|
||||
), throwsToolExit(message: 'No Windows desktop project configured. See '
|
||||
'https://flutter.dev/desktop#add-desktop-support-to-an-existing-flutter-app '
|
||||
'to learn about adding Windows support to a project.'));
|
||||
}, overrides: <Type, Generator>{
|
||||
Platform: () => windowsPlatform,
|
||||
FileSystem: () => fileSystem,
|
||||
|
Loading…
x
Reference in New Issue
Block a user