Я пытаюсь собрать Brave в Windows, я следую этому репо: https://github.com/brave/brave-browser/wiki
Мне удалось успешно запустить npm run init, однако, когда я запускаю npm run build, я получаю сообщение об ошибке, этокажется, кажется, это как-то связано с кодом Visual Studio, я использую Visual Studio 2019, я установил переменные окружения в:
DEPOT_TOOLS_WIN_TOOLCHAIN=0
GYP_MSVS_OVERRIDE_PATH=C:\Program Files (x86)\Microsoft Visual Studio
GYP_MSVS_VERSION=2019
, но кажется, что не читает переменные или что-то, есть кто-топрошли через ту же ошибку раньше?спасибо!
File "C:/Users/Gabriel/Documents/brave-browser/src/build/vs_toolchain.py", line 197, in DetectVisualStudioPath
' not found.' % version_as_year)
Exception: Visual Studio Version 2017 (from GYP_MSVS_VERSION) not found.
ERROR at //build/config/win/visual_studio_version.gni:27:7: Script returned non-zero exit code.
exec_script("../../vs_toolchain.py", [ "get_toolchain_dir" ], "scope")
^----------
Current dir: C:/Users/Gabriel/Documents/brave-browser/src/out/Debug/
Command: C:/Users/Gabriel/Documents/brave-browser/vendor/depot_tools/bootstrap-3_8_0b1_chromium_1_bin/python/bin/python.exe C:/Users/Gabriel/Documents/brave-browser/src/build/vs_toolchain.py get_toolchain_dir
Returned 1.
See //third_party/angle/gni/angle.gni:97:3: whence it was imported.
import("//build/config/win/visual_studio_version.gni")
^----------------------------------------------------
See //third_party/angle/src/tests/BUILD.gn:7:1: whence it was imported.
import("../../gni/angle.gni")
^---------------------------
See //BUILD.gn:178:7: which caused the file to be included.
"//third_party/angle/src/tests:angle_unittests",
^----------------------------------------------
Traceback (most recent call last):
File "C:/Users/Gabriel/Documents/brave-browser/src/build/compute_build_timestamp.py", line 127, in <module>
sys.exit(main())
File "C:/Users/Gabriel/Documents/brave-browser/src/build/compute_build_timestamp.py", line 113, in main
last_commit_timestamp = int(open(lastchange_file).read())
IOError: [Errno 2] No such file or directory: 'C:\\Users\\Gabriel\\Documents\\brave-browser\\src\\build\\util\\LASTCHANGE.committime'
null
null
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! brave@0.71.40 build: `node ./scripts/commands.js build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the brave@0.71.40 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Gabriel\AppData\Roaming\npm-cache\_logs\2019-09-19T12_28_05_476Z-debug.log