Add scripts\driver\bin2array.bat

to build the src\driver\loader\fort.rsa.pub from the binary.
This commit is contained in:
Nodir Temirkhodjaev 2021-11-14 12:17:38 +03:00
parent 6560358a2b
commit 341f43e503

View File

@ -0,0 +1,6 @@
@echo off
@set BIN_PATH=%1
@set HEADER_PATH=%2
python -c "import sys;a=sys.argv;open(a[2],'wb').write((','.join([hex(b) for b in open(a[1],'rb').read()])).encode('utf-8'))" %BIN_PATH% %HEADER_PATH%