mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
[flutter_tool] Download gen_snapshot.zip for macOS desktop (#97627)
This commit is contained in:
parent
822a4d6705
commit
32abf42a00
@ -870,10 +870,13 @@ const List<List<String>> _windowsUwpDesktopBinaryDirs = <List<String>>[
|
||||
|
||||
const List<List<String>> _macOSDesktopBinaryDirs = <List<String>>[
|
||||
<String>['darwin-x64', 'darwin-x64/FlutterMacOS.framework.zip'],
|
||||
<String>['darwin-x64', 'darwin-x64/gen_snapshot.zip'],
|
||||
<String>['darwin-x64-profile', 'darwin-x64-profile/FlutterMacOS.framework.zip'],
|
||||
<String>['darwin-x64-profile', 'darwin-x64-profile/artifacts.zip'],
|
||||
<String>['darwin-x64-profile', 'darwin-x64-profile/gen_snapshot.zip'],
|
||||
<String>['darwin-x64-release', 'darwin-x64-release/FlutterMacOS.framework.zip'],
|
||||
<String>['darwin-x64-release', 'darwin-x64-release/artifacts.zip'],
|
||||
<String>['darwin-x64-release', 'darwin-x64-release/gen_snapshot.zip'],
|
||||
];
|
||||
|
||||
const List<List<String>> _osxBinaryDirs = <List<String>>[
|
||||
|
||||
@ -557,6 +557,19 @@ void main() {
|
||||
]);
|
||||
});
|
||||
|
||||
testWithoutContext('macOS desktop artifacts include all gen_snapshot binaries', () {
|
||||
final Cache cache = Cache.test(processManager: FakeProcessManager.any());
|
||||
final MacOSEngineArtifacts artifacts = MacOSEngineArtifacts(cache, platform: FakePlatform());
|
||||
cache.includeAllPlatforms = false;
|
||||
cache.platformOverrideArtifacts = <String>{'macos'};
|
||||
|
||||
expect(artifacts.getBinaryDirs(), containsAll(<List<String>>[
|
||||
<String>['darwin-x64', 'darwin-x64/gen_snapshot.zip'],
|
||||
<String>['darwin-x64-profile', 'darwin-x64-profile/gen_snapshot.zip'],
|
||||
<String>['darwin-x64-release', 'darwin-x64-release/gen_snapshot.zip'],
|
||||
]));
|
||||
});
|
||||
|
||||
testWithoutContext('macOS desktop artifacts ignore filtering when requested', () {
|
||||
final Cache cache = Cache.test(processManager: FakeProcessManager.any());
|
||||
final MacOSEngineArtifacts artifacts = MacOSEngineArtifacts(cache, platform: FakePlatform());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user