Created
November 5, 2019 19:01
-
-
Save aam/a3a1315f45d392ab41f6346e376b9ddf to your computer and use it in GitHub Desktop.
update prebuilt flutter engine artifacts in fuchsia with locally-built ones
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FUCHSIA_ROOT=~/p/fuchsia | |
cd $FH/engine/src | |
cd flutter | |
ENGINE_REV=`git log -1 | head -1 | awk '{print $2}'` | |
cd - | |
echo at $ENGINE_REV | |
#!/bin/zsh | |
# debug | |
flutter/tools/gn --fuchsia --fuchsia-cpu arm64 --runtime-mode debug --no-lto && ninja -C out/fuchsia_debug_arm64 flutter/shell/platform/fuchsia:fuchsia flutter/shell/platform/fuchsia/flutter:flutter_runner_tests | |
flutter/tools/gn --fuchsia --fuchsia-cpu x64 --runtime-mode debug --no-lto && ninja -C out/fuchsia_debug_x64 flutter/shell/platform/fuchsia:fuchsia flutter/shell/platform/fuchsia/flutter:flutter_runner_tests | |
flutter/tools/fuchsia/build_fuchsia_artifacts.py --engine-version $ENGINE_REV --skip-build --archs x64 --runtime-mode debug && cp -rf out/fuchsia_bucket/flutter/x64/debug/* $FUCHSIA_ROOT/prebuilt/third_party/flutter/x64/debug | |
flutter/tools/fuchsia/build_fuchsia_artifacts.py --engine-version $ENGINE_REV --skip-build --archs arm64 --runtime-mode debug && cp -rf out/fuchsia_bucket/flutter/arm64/debug/* $FUCHSIA_ROOT/prebuilt/third_party/flutter/arm64/debug | |
# release | |
flutter/tools/gn --fuchsia --fuchsia-cpu arm64 --runtime-mode release | |
ninja -C out/fuchsia_release_arm64 flutter/shell/platform/fuchsia:fuchsia flutter/shell/platform/fuchsia/flutter:flutter_runner_tests | |
flutter/tools/gn --fuchsia --fuchsia-cpu x64 --runtime-mode release | |
ninja -C out/fuchsia_release_x64 flutter/shell/platform/fuchsia:fuchsia flutter/shell/platform/fuchsia/flutter:flutter_runner_tests | |
flutter/tools/fuchsia/build_fuchsia_artifacts.py --engine-version $ENGINE_REV --skip-build --archs x64 --runtime-mode release && cp -rf out/fuchsia_bucket/flutter/x64/release/* $FUCHSIA_ROOT/prebuilt/third_party/flutter/x64/release | |
flutter/tools/fuchsia/build_fuchsia_artifacts.py --engine-version $ENGINE_REV --skip-build --archs arm64 --runtime-mode release && cp -rf out/fuchsia_bucket/flutter/arm64/release/* $FUCHSIA_ROOT/prebuilt/third_party/flutter/arm64/release | |
# profile | |
flutter/tools/gn --fuchsia --fuchsia-cpu arm64 --runtime-mode profile | |
ninja -C out/fuchsia_profile_arm64 flutter/shell/platform/fuchsia:fuchsia flutter/shell/platform/fuchsia/flutter:flutter_runner_tests | |
flutter/tools/gn --fuchsia --fuchsia-cpu x64 --runtime-mode profile | |
ninja -C out/fuchsia_profile_x64 flutter/shell/platform/fuchsia:fuchsia flutter/shell/platform/fuchsia/flutter:flutter_runner_tests | |
flutter/tools/fuchsia/build_fuchsia_artifacts.py --engine-version $ENGINE_REV --skip-build --archs x64 --runtime-mode profile && cp -rf out/fuchsia_bucket/flutter/x64/profile/* $FUCHSIA_ROOT/prebuilt/third_party/flutter/x64/profile | |
flutter/tools/fuchsia/build_fuchsia_artifacts.py --engine-version $ENGINE_REV --skip-build --archs arm64 --runtime-mode profile && cp -rf out/fuchsia_bucket/flutter/arm64/profile/* $FUCHSIA_ROOT/prebuilt/third_party/flutter/arm64/profile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment