[Windows] Add target architecture to build path (#131843)
To implement windows-arm64 support, it is needed to add architecture as a subdirectory (https://github.com/flutter/flutter/issues/129805). In short, when performing a flutter windows build, we have: - Before: build/windows/runner/Release/gallery.exe - After: build/windows/x64/runner/Release/gallery.exe This convention follows what flutter linux build does. Addresses: https://github.com/flutter/flutter/issues/129805 Addresses: https://github.com/flutter/flutter/issues/116196 Design doc: [flutter.dev/go/windows-arm64](https://flutter.dev/go/windows-arm64)
This commit is contained in:
@@ -894,6 +894,7 @@ class StartupTest {
|
||||
testDirectory,
|
||||
'build',
|
||||
'windows',
|
||||
'x64',
|
||||
'runner',
|
||||
'Profile',
|
||||
'$basename.exe'
|
||||
@@ -1645,6 +1646,7 @@ class CompileTest {
|
||||
cwd,
|
||||
'build',
|
||||
'windows',
|
||||
'x64',
|
||||
'runner',
|
||||
'release',
|
||||
'$basename.exe');
|
||||
|
||||
@@ -294,7 +294,7 @@ public class $pluginClass: NSObject, FlutterPlugin {
|
||||
}
|
||||
case 'windows':
|
||||
if (await exec(
|
||||
path.join(rootPath, 'build', 'windows', 'plugins', 'plugintest', 'Release', 'plugintest_test.exe'),
|
||||
path.join(rootPath, 'build', 'windows', 'x64', 'plugins', 'plugintest', 'Release', 'plugintest_test.exe'),
|
||||
<String>[],
|
||||
canFail: true,
|
||||
) != 0) {
|
||||
|
||||
@@ -178,7 +178,7 @@ class WindowsRunOutputTest extends DesktopRunOutputTest {
|
||||
multiLine: true,
|
||||
);
|
||||
static final RegExp _builtOutput = RegExp(
|
||||
r'Built build\\windows\\runner\\(Debug|Release)\\\w+\.exe( \(\d+(\.\d+)?MB\))?\.',
|
||||
r'Built build\\windows\\x64\\runner\\(Debug|Release)\\\w+\.exe( \(\d+(\.\d+)?MB\))?\.',
|
||||
);
|
||||
|
||||
@override
|
||||
@@ -205,7 +205,7 @@ class WindowsRunOutputTest extends DesktopRunOutputTest {
|
||||
|
||||
return true;
|
||||
},
|
||||
'Built build\\windows\\runner\\$buildMode\\app.exe',
|
||||
'Built build\\windows\\x64\\runner\\$buildMode\\app.exe',
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user