forked from KolibriOS/kolibrios
7d89f2686a
UNIMG: upload binnary, add to IMG KWINE: upload to SVN, add to ISO git-svn-id: svn://kolibrios.org@7864 a494cfbc-eb01-0410-851d-a64ba20cac60
22 lines
713 B
Batchfile
22 lines
713 B
Batchfile
@echo off
|
|
set NASM="nasm\nasm.exe"
|
|
%NASM% -f coff "lib\msvcrt.dll.asm" -o "..\lib\msvcrt.dll"
|
|
strip --strip-debug "../lib/msvcrt.dll"
|
|
|
|
%NASM% -f coff "lib/kernel32.dll.asm" -o "../lib/kernel32.dll"
|
|
strip --strip-debug "../lib/kernel32.dll"
|
|
|
|
%NASM% -f bin "kwine.asm" -o "../kwine"
|
|
|
|
if %errorlevel% == 0 (
|
|
echo compiled succesfully.
|
|
ubuntu1804 run "mcopy -D o -i ../kolibri.img ../lib/msvcrt.dll ::kwine/lib/msvcrt.dll"
|
|
ubuntu1804 run "mcopy -D o -i ../kolibri.img ../lib/kernel32.dll ::kwine/lib/kernel32.dll"
|
|
ubuntu1804 run "mcopy -D o -i ../kolibri.img ../kwine ::kwine/kwine"
|
|
|
|
qemu-system-x86_64 -fda ../kolibri.img -m 256
|
|
) else (
|
|
echo compilation failed.
|
|
)
|
|
|
|
pause |