-
Notifications
You must be signed in to change notification settings - Fork 1
/
2_install.bat
52 lines (40 loc) · 1.26 KB
/
2_install.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
@echo off
set drive=i:
if NOT EXIST %Drive%\ (
echo Please mount the disk image at %Drive%
pause
EXIT
)
IF NOT EXIST %Drive%\boot mkdir %Drive%\boot
IF NOT EXIST %Drive%\bin mkdir %Drive%\bin
IF NOT EXIST %Drive%\sys mkdir %Drive%\sys
IF NOT EXIST %Drive%\apps mkdir %Drive%\Apps
IF NOT EXIST %Drive%\keys mkdir %Drive%\keys
IF NOT EXIST %Drive%\fonts mkdir %Drive%\fonts
IF NOT EXIST %Drive%\res mkdir %Drive%\res
IF NOT EXIST %Drive%\icons mkdir %Drive%\icons
IF NOT EXIST %Drive%\etc mkdir %Drive%\etc
echo Install kernel ...
del %Drive%\boot\kernel.elf /F /Q
copy bin\kernel.elf %Drive%\boot\kernel.elf
copy bin\res\realmode.bin %Drive%\boot\realmode.bin
for /r %%i in (bin\userland\*.bin) do (
echo %%~ni
IF NOT EXIST %Drive%\apps\%%~ni.APP mkdir %Drive%\apps\%%~ni.APP
copy bin\userland\%%~ni.bin %Drive%\apps\%%~ni.APP\main.bin
if exist icons\%%~ni.bmp copy icons\%%~ni.bmp %Drive%\apps\%%~ni.APP\app.bmp
)
echo install keymaps
copy bin\keymaps\*.* %Drive%\keys
echo Install fonts
copy fonts\*.* %Drive%\fonts
echo install skins
copy skins\*.bmp %Drive%\res\*.bmp
echo install icons
copy icons\*.bmp %Drive%\icons\*.bmp
copy bin\res\mousecur.bin %Drive%\res
echo Instal System bin
copy bin\sys\*.* %Drive%\sys
echo Install config
copy etc\*.* %Drive%\etc
pause