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
e5118376
Unverified
Commit
e5118376
authored
Nov 20, 2020
by
J-P Nurmi
Committed by
GitHub
Nov 20, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[flutter_tools] deploy version.json asset on Linux (#69920)
parent
f373c307
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
linux.dart
...ges/flutter_tools/lib/src/build_system/targets/linux.dart
+6
-0
linux_test.dart
...s/test/general.shard/build_system/targets/linux_test.dart
+3
-0
No files found.
packages/flutter_tools/lib/src/build_system/targets/linux.dart
View file @
e5118376
...
@@ -5,6 +5,8 @@
...
@@ -5,6 +5,8 @@
import
'../../artifacts.dart'
;
import
'../../artifacts.dart'
;
import
'../../base/file_system.dart'
;
import
'../../base/file_system.dart'
;
import
'../../build_info.dart'
;
import
'../../build_info.dart'
;
import
'../../devfs.dart'
;
import
'../../project.dart'
;
import
'../build_system.dart'
;
import
'../build_system.dart'
;
import
'../depfile.dart'
;
import
'../depfile.dart'
;
import
'../exceptions.dart'
;
import
'../exceptions.dart'
;
...
@@ -124,10 +126,14 @@ abstract class BundleLinuxAssets extends Target {
...
@@ -124,10 +126,14 @@ abstract class BundleLinuxAssets extends Target {
environment
.
buildDir
.
childFile
(
'app.dill'
)
environment
.
buildDir
.
childFile
(
'app.dill'
)
.
copySync
(
outputDirectory
.
childFile
(
'kernel_blob.bin'
).
path
);
.
copySync
(
outputDirectory
.
childFile
(
'kernel_blob.bin'
).
path
);
}
}
final
String
versionInfo
=
FlutterProject
.
current
().
getVersionInfo
();
final
Depfile
depfile
=
await
copyAssets
(
final
Depfile
depfile
=
await
copyAssets
(
environment
,
environment
,
outputDirectory
,
outputDirectory
,
targetPlatform:
TargetPlatform
.
linux_x64
,
targetPlatform:
TargetPlatform
.
linux_x64
,
additionalContent:
<
String
,
DevFSContent
>{
'version.json'
:
DevFSStringContent
(
versionInfo
),
}
);
);
final
DepfileService
depfileService
=
DepfileService
(
final
DepfileService
depfileService
=
DepfileService
(
fileSystem:
environment
.
fileSystem
,
fileSystem:
environment
.
fileSystem
,
...
...
packages/flutter_tools/test/general.shard/build_system/targets/linux_test.dart
View file @
e5118376
...
@@ -89,6 +89,7 @@ void main() {
...
@@ -89,6 +89,7 @@ void main() {
expect
(
output
.
childFile
(
'kernel_blob.bin'
),
exists
);
expect
(
output
.
childFile
(
'kernel_blob.bin'
),
exists
);
expect
(
output
.
childFile
(
'AssetManifest.json'
),
exists
);
expect
(
output
.
childFile
(
'AssetManifest.json'
),
exists
);
expect
(
output
.
childFile
(
'version.json'
),
exists
);
// SkSL
// SkSL
expect
(
output
.
childFile
(
'io.flutter.shaders.json'
),
exists
);
expect
(
output
.
childFile
(
'io.flutter.shaders.json'
),
exists
);
expect
(
output
.
childFile
(
'io.flutter.shaders.json'
).
readAsStringSync
(),
'{"data":{"A":"B"}}'
);
expect
(
output
.
childFile
(
'io.flutter.shaders.json'
).
readAsStringSync
(),
'{"data":{"A":"B"}}'
);
...
@@ -126,6 +127,7 @@ void main() {
...
@@ -126,6 +127,7 @@ void main() {
expect
(
libDir
.
childFile
(
'libapp.so'
),
exists
);
expect
(
libDir
.
childFile
(
'libapp.so'
),
exists
);
expect
(
assetsDir
.
childFile
(
'AssetManifest.json'
),
exists
);
expect
(
assetsDir
.
childFile
(
'AssetManifest.json'
),
exists
);
expect
(
assetsDir
.
childFile
(
'version.json'
),
exists
);
// No bundled fonts
// No bundled fonts
expect
(
assetsDir
.
childFile
(
'FontManifest.json'
),
isNot
(
exists
));
expect
(
assetsDir
.
childFile
(
'FontManifest.json'
),
isNot
(
exists
));
},
overrides:
<
Type
,
Generator
>{
},
overrides:
<
Type
,
Generator
>{
...
@@ -159,6 +161,7 @@ void main() {
...
@@ -159,6 +161,7 @@ void main() {
expect
(
libDir
.
childFile
(
'libapp.so'
),
exists
);
expect
(
libDir
.
childFile
(
'libapp.so'
),
exists
);
expect
(
assetsDir
.
childFile
(
'AssetManifest.json'
),
exists
);
expect
(
assetsDir
.
childFile
(
'AssetManifest.json'
),
exists
);
expect
(
assetsDir
.
childFile
(
'version.json'
),
exists
);
// No bundled fonts
// No bundled fonts
expect
(
assetsDir
.
childFile
(
'FontManifest.json'
),
isNot
(
exists
));
expect
(
assetsDir
.
childFile
(
'FontManifest.json'
),
isNot
(
exists
));
},
overrides:
<
Type
,
Generator
>{
},
overrides:
<
Type
,
Generator
>{
...
...
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