Subversion Repositories Kolibri OS

Rev

Rev 9388 | Rev 9390 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 9388 Rev 9389
Line 9... Line 9...
9
path_to_tools = os.path.dirname(path_to_tools_workspace)
9
path_to_tools = os.path.dirname(path_to_tools_workspace)
10
sys.path.append(path_to_tools)
10
sys.path.append(path_to_tools)
Line 11... Line 11...
11
 
11
 
Line -... Line 12...
-
 
12
from workspace.build import build
12
from workspace.build import build
13
 
13
 
14
from lib.builds import builds_get_contents
14
from lib.makeflop import Floppy
15
from lib.makeflop import Floppy
15
from lib.platform import is_win32, path
16
from lib.platform import is_win32, path
Line 55... Line 56...
55
    # Remove unuseful folders
56
    # Remove unuseful folders
56
    img.delete_path("GAMES")
57
    img.delete_path("GAMES")
57
    img.delete_path("DEMOS")
58
    img.delete_path("DEMOS")
58
    img.delete_path("3D")
59
    img.delete_path("3D")
Line -... Line 60...
-
 
60
 
-
 
61
    # Insert faster kernel if need
-
 
62
    if len(sys.argv) > 1 and sys.argv[1] == "--fast":
-
 
63
        new_kernel = builds_get_contents("eng/data/kernel/trunk/kernel.mnt.pretest")
-
 
64
        img.add_file_path("KERNEL.MNT", new_kernel)
59
 
65
 
60
    log("Moving program into kolibri image... ", end = "")
66
    log("Moving program into kolibri image... ", end = "")
61
    with open(program_name, "rb") as file:
67
    with open(program_name, "rb") as file:
62
        file_data = file.read()
68
        file_data = file.read()
63
    if not img.add_file_path(program_name.upper(), file_data):
69
    if not img.add_file_path(program_name.upper(), file_data):