mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-11-28 11:26:32 +03:00
53aa5c71a0
* fix quotes in amap * try to fix quotes * try to read "commit_message" * Add new actions anv parser * fix amap_anayse * fix script ssl error * test build with new get commit details method * fix build.yml * add fbt envs to get_env.py * fix envs * using new commit info "way" * try to fix report link in PR page * fix "pvs_studio.yml" again * fix vars * fix "build.yml" Co-authored-by: あく <alleteam@gmail.com>
47 lines
1.3 KiB
Batchfile
47 lines
1.3 KiB
Batchfile
@echo off
|
|
|
|
if not [%FBT_ROOT%] == [] (
|
|
goto already_set
|
|
)
|
|
|
|
set "FBT_ROOT=%~dp0\..\..\"
|
|
pushd %FBT_ROOT%
|
|
set "FBT_ROOT=%cd%"
|
|
popd
|
|
|
|
if not [%FBT_NOENV%] == [] (
|
|
exit /b 0
|
|
)
|
|
|
|
set "FLIPPER_TOOLCHAIN_VERSION=12"
|
|
set "FBT_TOOLCHAIN_ROOT=%FBT_ROOT%\toolchain\i686-windows"
|
|
|
|
|
|
if not exist "%FBT_TOOLCHAIN_ROOT%" (
|
|
powershell -ExecutionPolicy Bypass -File "%FBT_ROOT%\scripts\toolchain\windows-toolchain-download.ps1" "%flipper_toolchain_version%"
|
|
)
|
|
if not exist "%FBT_TOOLCHAIN_ROOT%\VERSION" (
|
|
powershell -ExecutionPolicy Bypass -File "%FBT_ROOT%\scripts\toolchain\windows-toolchain-download.ps1" "%flipper_toolchain_version%"
|
|
)
|
|
set /p REAL_TOOLCHAIN_VERSION=<"%FBT_TOOLCHAIN_ROOT%\VERSION"
|
|
if not "%REAL_TOOLCHAIN_VERSION%" == "%FLIPPER_TOOLCHAIN_VERSION%" (
|
|
powershell -ExecutionPolicy Bypass -File "%FBT_ROOT%\scripts\toolchain\windows-toolchain-download.ps1" "%flipper_toolchain_version%"
|
|
)
|
|
|
|
|
|
set "HOME=%USERPROFILE%"
|
|
set "PYTHONHOME=%FBT_TOOLCHAIN_ROOT%\python"
|
|
set "PYTHONPATH="
|
|
set "PATH=%FBT_TOOLCHAIN_ROOT%\python;%FBT_TOOLCHAIN_ROOT%\bin;%FBT_TOOLCHAIN_ROOT%\protoc\bin;%FBT_TOOLCHAIN_ROOT%\openocd\bin;%PATH%"
|
|
set "PROMPT=(fbt) %PROMPT%"
|
|
|
|
:already_set
|
|
|
|
if not "%1" == "env" (
|
|
echo *********************************
|
|
echo * fbt build environment *
|
|
echo *********************************
|
|
cd "%FBT_ROOT%"
|
|
cmd /k
|
|
)
|