-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path2_install.bat
67 lines (48 loc) · 1.52 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
@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 /d %%i in (userland\apps\*.*) 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 userland\apps\%%~ni\app.bmp copy userland\apps\%%~ni\app.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 Instal Utilities
copy bin\utils\*.* %Drive%\bin
copy bin\*.bin %Drive%\bin
echo Install config
copy etc\*.* %Drive%\etc
copy macros.inc %Drive%\macros.inc
copy sys.inc %Drive%\sys.inc
copy test.asm %Drive%\test.asm
toolchain\fasm test.asm test.bin
copy test.c %Drive%\test.c
pause