This repository was archived by the owner on Mar 21, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmake.bat
More file actions
30 lines (26 loc) · 1.27 KB
/
make.bat
File metadata and controls
30 lines (26 loc) · 1.27 KB
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
@ECHO OFF
DEL dist\taser.exe 2> nul
START /WAIT pyinstaller --clean --workpath="build" --distpath="dist" --specpath="dist" --add-data="../source/data;data" --onefile --icon="dist/icon.ico" source/taser.py
START /WAIT dist/verpatch.exe dist/taser.exe /va /langid 0x0809 /high %1 /s desc "Generate Tacview .xml files to render SLED profiles." /s product "TAcview SLEDs Renderer" /s copyright "CC Attribution-ShareAlike 4.0" /pv %2
RMDIR /S /Q build 2> nul
IF EXIST dist\taser.exe (
CD dist
DEL ..\test\generated.xml 2> nul
START /WAIT taser.exe -d -f ../test/generated -c -lh 10 -ad 640 -bd 6039 -ba 9800 -ta 7400 -ra 6200 -aa 5700 -ma 4035 range 64C West-Bomb-Circle
FC ..\test\correct.xml ..\test\generated.xml > nul 2> nul
IF %ERRORLEVEL% EQU 0 (
ECHO [+] "range" success
) ELSE (
ECHO [-] "range" generating
)
DEL ..\test\generated.xml 2> nul
START /WAIT taser.exe -d -f ../test/generated -c -ah 355 -lh 10 -ad 640 -bd 6039 -ba 9800 -ta 7400 -ra 6200 -aa 5700 -ma 4035 coords 36.40.51.N 115.40.26.W 3035
FC ..\test\correct.xml ..\test\generated.xml > nul 2> nul
IF %ERRORLEVEL% EQU 0 (
ECHO [+] "coords" success
) ELSE (
ECHO [-] "coords" fail
)
) ELSE (
ECHO [-] packaging
)