mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Make big_red_button work with the current Dart SDK
Previously --stage-two would error out because the LICENSE was git ignored. This patch includes the LICENSE file in the repo to avoid the error. Also, refactor the big_red_button.py to be clearer about what's shared between stage one and stage two of the release process.
This commit is contained in:
parent
19f8d2663a
commit
61628055c8
@ -108,32 +108,37 @@ def main():
|
||||
|
||||
run(sky_engine_root, ['git', 'fetch', 'upstream'])
|
||||
run(sky_engine_root, ['git', 'reset', 'upstream/master', '--hard'])
|
||||
run(sky_engine_root, ['gclient', 'sync'])
|
||||
|
||||
commit_hash = git_revision(sky_engine_root)
|
||||
def stage_one():
|
||||
run(sky_engine_root, ['gclient', 'sync'])
|
||||
|
||||
run(sky_engine_root, ['sky/tools/gn', '--android', '--release'])
|
||||
run(sky_engine_root, ['ninja', '-C', 'out/android_Release', ':dist'])
|
||||
commit_hash = git_revision(sky_engine_root)
|
||||
|
||||
run(sky_engine_root, ['sky/tools/gn', '--release'])
|
||||
run(sky_engine_root, ['ninja', '-C', 'out/Release', ':dist'])
|
||||
run(sky_engine_root, ['sky/tools/gn', '--android', '--release'])
|
||||
run(sky_engine_root, ['ninja', '-C', 'out/android_Release', ':dist'])
|
||||
|
||||
run(sky_engine_root, ['cp', 'AUTHORS', 'LICENSE', sky_package_root])
|
||||
run(sky_engine_root, ['sky/tools/gn', '--release'])
|
||||
run(sky_engine_root, ['ninja', '-C', 'out/Release', ':dist'])
|
||||
|
||||
with open(sky_engine_revision_file, 'w') as stream:
|
||||
stream.write(commit_hash)
|
||||
with open(sky_engine_revision_file, 'w') as stream:
|
||||
stream.write(commit_hash)
|
||||
|
||||
if not args.stage_two:
|
||||
upload_artifacts(android_dist_root, 'android-arm', commit_hash)
|
||||
upload_artifacts(linux_dist_root, 'linux-x64', commit_hash)
|
||||
|
||||
if args.publish:
|
||||
if args.stage_two:
|
||||
run(sky_package_root, [pub_path, 'publish', '--force'])
|
||||
else:
|
||||
if args.publish:
|
||||
run(sky_engine_package_root, [pub_path, 'publish', '--force'])
|
||||
run(sky_services_package_root, [pub_path, 'publish', '--force'])
|
||||
|
||||
def stage_two():
|
||||
if args.publish:
|
||||
run(sky_package_root, [pub_path, 'publish', '--force'])
|
||||
|
||||
if args.stage_two:
|
||||
stage_two()
|
||||
else:
|
||||
stage_one()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.exit(main())
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user