mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
16 lines
845 B
Python
16 lines
845 B
Python
# Copyright 2013 The Flutter Authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
import subprocess
|
|
import os
|
|
|
|
if __name__ == '__main__':
|
|
leading = os.path.join("src", "third_party", "dart", "tools", "sdks", "dart-sdk", "bin")
|
|
pub = "pub"
|
|
if os.name == "nt":
|
|
pub = "pub.bat"
|
|
subprocess.check_call([os.path.join(leading, pub), "global", "activate", "-spath", "./src/flutter/tools/generate_package_config"])
|
|
subprocess.check_call([os.path.join(leading, pub), "global", "run", "generate_package_config:generate_from_legacy", "src/flutter/flutter_frontend_server/.packages"])
|
|
subprocess.check_call([os.path.join(leading, pub), "global", "run", "generate_package_config:generate_from_legacy", "src/flutter/tools/const_finder/.packages"])
|