-
Notifications
You must be signed in to change notification settings - Fork 215
/
Copy pathConsole.bat
38 lines (28 loc) · 1.05 KB
/
Console.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
@echo off
set ASPATH=%~dp0
set astmp=%ASPATH%
set ASDISK=%astmp:~0,2%
set MSYS2=C:\msys64
set ASPATH=%ASPATH:~,-1%
%ASDISK%
cd %ASPATH%
REM base env PATH
set PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0
set PATH=C:\Anaconda3;C:\Anaconda3\Scripts;%MSYS2%\mingw64\bin;%MSYS2%\usr\bin;%MSYS2%\mingw32\bin;%MSYS2%\clang64\bin;%PATH%
set PATH=%PATH%;%ASPATH%\download\gcc-arm-none-eabi-5_4-2016q3-20160926-win32\bin
set ConEmu=%ASPATH%\download\ConEmu\ConEmu64.exe
if EXIST %ConEmu% goto prepareEnv
mkdir download
cd download
mkdir ConEmu
cd ConEmu
wget https://github.com/Maximus5/ConEmu/releases/download/v23.07.24/ConEmuPack.230724.7z
"C:\Program Files\7-Zip\7z.exe" x ConEmuPack.230724.7z
cd %ASPATH%
:prepareEnv
set MSYS=winsymlinks:nativestrict
start %ConEmu% -title sim-app-boot-tools ^
-runlist -new_console:d:"%ASPATH%":t:sim ^
^|^|^| -new_console:d:"%ASPATH%":t:app ^
^|^|^| -new_console:d:"%ASPATH%":t:boot ^
^|^|^| -new_console:d:"%ASPATH%/tools":t:tools