Skip to content

Instantly share code, notes, and snippets.

@liyuqian
Last active April 4, 2019 04:09
Show Gist options
  • Save liyuqian/c46d884191a282a79dae811178b37f07 to your computer and use it in GitHub Desktop.
Save liyuqian/c46d884191a282a79dae811178b37f07 to your computer and use it in GitHub Desktop.
cd c:\
powershell
curl https://aka.ms/vs/15/release/vs_community.exe -o vs_community.exe
./vs_community.exe --passive --wait --add Microsoft.VisualStudio.Workload.NativeCrossPlat --add Microsoft.VisualStudio.Workload.NativeDesktop --includeRecommended
curl https://download.microsoft.com/download/5/C/3/5C3770A3-12B4-4DB4-BAE7-99C624EB32AD/windowssdk/winsdksetup.exe -o winsdksetup.exe
./winsdksetup.exe /features OptionId.WindowsDesktopDebuggers /q
curl https://storage.googleapis.com/chrome-infra/depot_tools.zip -o depot_tools.zip
Expand-Archive -LiteralPath c:/depot_tools.zip -DestinationPath depot_tools
curl https://npm.taobao.org/mirrors/git-for-windows/v2.21.0.windows.1/MinGit-2.21.0-64-bit.zip -o MinGit.zip
Expand-Archive -LiteralPath MinGit.zip -DestinationPath MinGit
setx path "c:/depot_tools/;c:/MinGit/cmd;${env:path}"
setx DEPOT_TOOLS_WIN_TOOLCHAIN 0
setx GYP_MSVS_OVERRIDE_PATH "c:/Program Files (x86)/Microsoft Visual Studio/2017/Community"
::need restart the command line here
powershell
gclient
mkdir flutter/engine
cd flutter/engine
curl https://raw.githubusercontent.com/flutter/engine/master/ci/docker/build/engine_gclient -o .gclient
gclient sync
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment