Subversion Repositories Kolibri OS

Rev

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

Rev 9384 Rev 9388
Line 62... Line 62...
62
        file_data = file.read()
62
        file_data = file.read()
63
    if not img.add_file_path(program_name.upper(), file_data):
63
    if not img.add_file_path(program_name.upper(), file_data):
64
        print(f"Coudn't move {program_name} into IMG")
64
        print(f"Coudn't move {program_name} into IMG")
65
    log("Done")
65
    log("Done")
Line 66... Line -...
66
 
-
 
67
    # TODO: Figure out which of compiled files is a program executable and only run it
66
 
68
    log("Adding program to autorun.dat... ", end = "")
67
    log("Adding program to autorun.dat... ", end = "")
69
    lines_to_add = bytes(f"\r\n/SYS/{program_name.upper()}\t\t""\t0\t# Your program", "ascii")
68
    lines_to_add = bytes(f"\r\n/SYS/{program_name.upper()}\t\t""\t0\t# Your program", "ascii")
70
    autorun_dat = img.extract_file_path("SETTINGS\AUTORUN.DAT")
69
    autorun_dat = img.extract_file_path("SETTINGS\AUTORUN.DAT")
71
    place_for_new_lines = autorun_dat.index(b"\r\n/SYS/@TASKBAR")# b"\r\n### Hello, ASM World! ###")
70
    place_for_new_lines = autorun_dat.index(b"\r\n/SYS/@TASKBAR")# b"\r\n### Hello, ASM World! ###")