Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
25b3ea7e
Unverified
Commit
25b3ea7e
authored
Oct 09, 2019
by
Jonah Williams
Committed by
GitHub
Oct 09, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert removal of linux support from unpack command (#42276)
parent
1ec44a0c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletion
+17
-1
unpack.dart
packages/flutter_tools/lib/src/commands/unpack.dart
+17
-1
No files found.
packages/flutter_tools/lib/src/commands/unpack.dart
View file @
25b3ea7e
...
...
@@ -13,6 +13,7 @@ import '../runner/flutter_command.dart';
/// The directory in the Flutter cache for each platform's artifacts.
const
Map
<
TargetPlatform
,
String
>
flutterArtifactPlatformDirectory
=
<
TargetPlatform
,
String
>{
TargetPlatform
.
windows_x64
:
'windows-x64'
,
TargetPlatform
.
linux_x64
:
'linux-x64'
,
};
// TODO(jonahwilliams): this should come from a configuration in each build
...
...
@@ -30,6 +31,15 @@ const Map<TargetPlatform, List<String>> artifactFilesByPlatform = <TargetPlatfor
'icudtl.dat'
,
'cpp_client_wrapper/'
,
],
TargetPlatform
.
linux_x64
:
<
String
>[
'libflutter_linux_glfw.so'
,
'flutter_export.h'
,
'flutter_messenger.h'
,
'flutter_plugin_registrar.h'
,
'flutter_glfw.h'
,
'icudtl.dat'
,
'cpp_client_wrapper_glfw/'
,
]
};
/// Copies desktop artifacts to local cache directories.
...
...
@@ -37,7 +47,7 @@ class UnpackCommand extends FlutterCommand {
UnpackCommand
()
{
argParser
.
addOption
(
'target-platform'
,
allowed:
<
String
>[
'windows-x64'
],
allowed:
<
String
>[
'windows-x64'
,
'linux-x64'
],
);
argParser
.
addOption
(
'cache-dir'
,
help:
'Location to output platform specific artifacts.'
);
...
...
@@ -62,6 +72,9 @@ class UnpackCommand extends FlutterCommand {
case
TargetPlatform
.
windows_x64
:
result
.
add
(
DevelopmentArtifact
.
windows
);
break
;
case
TargetPlatform
.
linux_x64
:
result
.
add
(
DevelopmentArtifact
.
linux
);
break
;
default
:
}
return
result
;
...
...
@@ -116,6 +129,9 @@ class ArtifactUnpacker {
case
TargetPlatform
.
windows_x64
:
cacheStamp
=
'windows-sdk'
;
break
;
case
TargetPlatform
.
linux_x64
:
cacheStamp
=
'linux-sdk'
;
break
;
default
:
throwToolExit
(
'Unsupported target platform:
$platform
'
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment