[WS][run.py] Add --fast key to use non-compressed kernel

git-svn-id: svn://kolibrios.org@9389 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
2021-12-04 11:50:32 +00:00
parent a44c4281c4
commit a68941be35
2 changed files with 24 additions and 0 deletions

View File

@@ -11,6 +11,7 @@ sys.path.append(path_to_tools)
from workspace.build import build
from lib.builds import builds_get_contents
from lib.makeflop import Floppy
from lib.platform import is_win32, path
from lib.logging import log
@@ -57,6 +58,11 @@ if __name__ == "__main__":
img.delete_path("DEMOS")
img.delete_path("3D")
# Insert faster kernel if need
if len(sys.argv) > 1 and sys.argv[1] == "--fast":
new_kernel = builds_get_contents("eng/data/kernel/trunk/kernel.mnt.pretest")
img.add_file_path("KERNEL.MNT", new_kernel)
log("Moving program into kolibri image... ", end = "")
with open(program_name, "rb") as file:
file_data = file.read()