mirror of
https://github.com/vapaamies/KolibriOS.git
synced 2025-09-24 08:03:49 +02:00
KoW for console applications added
This commit is contained in:
@@ -7,7 +7,7 @@ if #%Source%#==## (
|
||||
goto exit
|
||||
)
|
||||
|
||||
call "%~dp0init.bat"
|
||||
call "%~dp0init.bat" -dKolibriOS
|
||||
|
||||
set Bin=%~dp0..\Bin
|
||||
set DCU=%Bin%\DCU
|
||||
@@ -17,10 +17,16 @@ set Units=%~dp0..\Lib;%DCU%
|
||||
|
||||
if exist "%Source%.cfg" del "%Source%.cfg"
|
||||
|
||||
dcc32 %Source%.dpr -e"%Bin%" -n"%DCU%" -u"%Units%" %Options%
|
||||
dcc32 -b %Source%.dpr -e"%Bin%" -n"%DCU%" -u"%Units%" %Options% -dKolibriOS
|
||||
if errorlevel 1 goto exit
|
||||
|
||||
call "%~dp0convert.bat" "%Target%.exe"
|
||||
"%~dp0..\Pet" -nologo -strip -trunc -dropsect .idata,.rsrc -rebase 0 -osver 0.7 -log brief -into "%Target%.exe"
|
||||
if errorlevel 1 goto exit
|
||||
|
||||
"%~dp0..\exe2kos" "%Target%.exe"
|
||||
if errorlevel 1 goto exit
|
||||
|
||||
"%~dp0..\kpack" "%Target%"
|
||||
if errorlevel 1 goto exit
|
||||
|
||||
del "%Target%.exe"
|
||||
|
@@ -1,8 +0,0 @@
|
||||
@echo off
|
||||
|
||||
for %%f in ("%~dp0*.exe") do (
|
||||
call "%~dp0..\Tools\convert.bat" "%%f" %*
|
||||
if errorlevel 1 goto exit
|
||||
)
|
||||
|
||||
:exit
|
@@ -1,16 +0,0 @@
|
||||
@echo off
|
||||
|
||||
if #%1#==## (
|
||||
echo Usage: %~n0 [source-file.exe [pet-options]]
|
||||
goto exit
|
||||
)
|
||||
|
||||
"%~dp0..\Pet" -nologo -strip -trunc -dropsect .idata,.rsrc -rebase 0 -osver 0.7 -log brief -into %*
|
||||
if errorlevel 1 goto exit
|
||||
|
||||
"%~dp0..\exe2kos" %1
|
||||
if errorlevel 1 goto exit
|
||||
|
||||
"%~dp0..\kpack" "%~dp1%~n1"
|
||||
|
||||
:exit
|
@@ -6,13 +6,4 @@ set DCU=%Bin%\DCU
|
||||
if not exist "%Bin%" mkdir "%Bin%"
|
||||
if not exist "%DCU%" mkdir "%DCU%"
|
||||
|
||||
echo @call "%%~dp0..\Tools\convert.bat" %%* >"%Bin%\convert.bat"
|
||||
if errorlevel 1 goto exit
|
||||
|
||||
copy "%~dp0convert-all.bat" "%Bin%" >nul
|
||||
if errorlevel 1 goto exit
|
||||
|
||||
dcc32 -m -y -z "%~dp0..\Lib\System" -n"%DCU%"
|
||||
if errorlevel 1 goto exit
|
||||
|
||||
:exit
|
||||
dcc32 -m -y -z "%~dp0..\Lib\System" -n"%DCU%" %*
|
Reference in New Issue
Block a user