mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Fix deploy_sdk.py to include README.md and stock data files
Also, remove testplan.txt, which isn't part of the framework. TBR=eseidel@chromium.org Review URL: https://codereview.chromium.org/1038273002
This commit is contained in:
parent
8aff978b43
commit
8c5939bb7c
@ -1,22 +0,0 @@
|
||||
-Basic Sync output (build a thing)
|
||||
-Div, Image, Anchor, Text
|
||||
|
||||
-Sync
|
||||
-Text Node
|
||||
-Container
|
||||
-Childlist mutations
|
||||
-Image
|
||||
-Anchor
|
||||
|
||||
-Styling
|
||||
-StyleObjects
|
||||
-inlineStyle
|
||||
-StyleNode
|
||||
|
||||
-Event Dispatch
|
||||
|
||||
-Components
|
||||
-Stateless vs stateful
|
||||
-Mount/Unmount signals
|
||||
-setState/scheduleBuild build
|
||||
-getRoot
|
||||
@ -26,6 +26,7 @@ DEFAULT_REL_BUILD_DIR = os.path.join('out', 'android_Release')
|
||||
def git_revision():
|
||||
return subprocess.check_output(['git', 'rev-parse', 'HEAD']).strip()
|
||||
|
||||
|
||||
def gen_filter(path):
|
||||
if os.path.isdir(path):
|
||||
return True
|
||||
@ -33,6 +34,7 @@ def gen_filter(path):
|
||||
# Don't include all .dart, just .mojom.dart.
|
||||
return path.endswith('.mojom.dart')
|
||||
|
||||
|
||||
def dart_filter(path):
|
||||
if os.path.isdir(path):
|
||||
return True
|
||||
@ -41,14 +43,6 @@ def dart_filter(path):
|
||||
return ext == '.dart'
|
||||
|
||||
|
||||
def sky_or_dart_filter(path):
|
||||
if os.path.isdir(path):
|
||||
return True
|
||||
_, ext = os.path.splitext(path)
|
||||
# .dart includes '.mojom.dart'
|
||||
return ext == '.sky' or ext == '.dart'
|
||||
|
||||
|
||||
def ensure_dir_exists(path):
|
||||
if not os.path.exists(path):
|
||||
os.makedirs(path)
|
||||
@ -156,12 +150,10 @@ def main():
|
||||
# Manually clear sdk_root above to avoid deleting dot-files.
|
||||
copy(src_path('sky/sdk'), sdk_root)
|
||||
|
||||
copy_or_link(src_path('sky/examples'), sdk_path('examples'),
|
||||
sky_or_dart_filter)
|
||||
copy_or_link(src_path('sky/examples'), sdk_path('examples'))
|
||||
|
||||
# Sky package
|
||||
copy_or_link(src_path('sky/framework'),
|
||||
sdk_path('packages/sky/lib/framework'), sky_or_dart_filter)
|
||||
copy_or_link(src_path('sky/framework'), sdk_path('packages/sky/lib/framework'))
|
||||
copy_or_link(src_path('sky/assets'), sdk_path('packages/sky/lib/assets'))
|
||||
# Copy gen files every time for now:
|
||||
copy(os.path.join(build_dir, 'gen/sky'),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user