-
-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathbuild.bat
60 lines (51 loc) · 1.83 KB
/
build.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
@echo off
echo [32mWelcome to the Greentea OS! Support us at https://www.patreon.com/PeyTy and https://greenteaos.github.io/donate/
echo [0m
:: cd /d "C:\Program Files\Oracle\VirtualBox"
:: VBoxManage controlvm "Tofita" poweroff
:: Keep VM active and booted up for this to work:
:: VBoxManage storageattach "Tofita" --storagectl SATA --port 1 --device 0 --forceunmount --type dvddrive --medium emptydrive
cd /d %~dp0
::TODO if not exists Greentea You seems not downloaded repo... Can be downloaded at url
::TODO if not exists Teapot You seems not downloaded repo...
::TODO hexa--is-present , if err code get hexa at url
:: Balanced
:: Use this to get the list of GUIDs: powercfg /list
:: powercfg /setactive 381b4222-f694-41f0-9685-ff5bb260df2e
:: Build the builder itself
cmd /c hexa build\hexa.json
IF %ERRORLEVEL% NEQ 0 (
goto somethingbad
)
:: TODO ! hexa --deps(name+date)path.txt to print for deps while compile, so
:: we can compare dates for cashes and rebuild only required projects
::debug
..\Teapot\node-v18.1.0-win-x64\node build.js init-or-clean asm efi dll engine ramdisk iso
::
IF %ERRORLEVEL% NEQ 0 (
goto somethingbad
)
echo [36m[Success][0m
ATTRIB +S .
:: Start VMs or tools
::tools\qemu-vfat.bat
:: That's how you can control your VM for quick debug:
:: cd /d "C:\Program Files\Oracle\VirtualBox"
:: VBoxManage startvm "Tofita"
:: VBoxManage storageattach "Tofita" --storagectl SATA --port 1 --device 0 --type dvddrive --medium "R:\Tea\greenteaos-uefi64.iso"
:: VBoxManage controlvm "Tofita" reset
:: Eco
:: powercfg /setactive 4353c124-51fe-4f9b-b6b2-0d3f94691a20
::node build.js vbox
::node tools\vbox.js
::node tools\listen.js
::node tools\pipe.js
goto done
:somethingbad
echo [37m[41m[Exiting on error][0m
:: Eco
:: powercfg /setactive 4353c124-51fe-4f9b-b6b2-0d3f94691a20
:done
:: Clear error code
set errorlevel=0
exit /b 0