flutter: Link in the fluter_tools package_config.json

This commit is contained in:
hacker1024 2023-10-23 15:47:28 +11:00 committed by Maciej Krüger
parent 0d82a3864a
commit ef3625ff56
No known key found for this signature in database
GPG Key ID: 0D948CE19CF49C5F

View File

@ -57,8 +57,18 @@ let
fi
mkdir -p bin/cache
# Add a flutter_tools artifact stamp, and build a snapshot.
# This is the Flutter CLI application.
echo "$(git rev-parse HEAD)" > bin/cache/flutter_tools.stamp
ln -s '${tools}/share/flutter_tools.snapshot' bin/cache/flutter_tools.snapshot
# Some of flutter_tools's dependencies contain static assets. The
# application attempts to read its own package_config.json to find these
# assets at runtime.
mkdir -p packages/flutter_tools/.dart_tool
ln -s '${tools.dartDeps.packageConfig}' packages/flutter_tools/.dart_tool/package_config.json
echo -n "${version}" > version
'';