Beispiel #1
0
def runContinueUpdateLoop(generated_folder_path):
    update.continue_actions(generated_folder_path)
    if (generated_folder_path is not None
            and locales.advInput("DELETE_FOLDER_AFTER_BUILDING_INPUT") in YES):
        update.delete_folder(generated_folder_path)
    compile_tools.compile()
    utils.askStartCheat()
Beispiel #2
0
def run_continue_update_loop(folder_path):
    update.continue_actions(folder_path)
    if folder_path is not None and locales.adv_input("DELETE_FOLDER_AFTER_BUILDING_INPUT") in YES:
        update.delete_folder(folder_path)
    compile_tools.compile()
    version_file = repository.Version.get_version_file()
    version_file.write_commit_hash(repo.get_latest_commit_hash(version_file.branch))
    utils.ask_start_cheat()
Beispiel #3
0
                         break
                 if generated_folder_path == "":
                     raise Exception("RatPoison folder was not found")
             if settings["update_type"] == "call_installer":
                 call = f"{generated_folder_path}/{executing}.exe" if os.path.exists(
                     f"{generated_folder_path}/{executing}.exe"
                 ) else f"{generated_folder_path}/{executing}.bat"
                 subprocess.check_call(
                     f"{call} True \"{generated_folder_path}\"")
                 os._exit(0)
             else:
                 run_continue_update_loop(generated_folder_path)
         elif not settings["force_cheat_compile"]:
             utils.ask_start_cheat()
     if not builded or settings["force_cheat_compile"]:
         compile_tools.compile()
         utils.ask_start_cheat()
 else:
     if utils.test_internet_connection():
         locales.adv_print("CONNECTING_TO_GITHUB")
         branches = repo.get_branches()
         questions = [{
             'type': 'list',
             'name': 'branch',
             'message': locales.message("BRANCH_TO_DOWNLOAD"),
             'choices': list(branches)
         }]
         answers = whaaaaat.prompt(questions)
         raw_branch = answers.get('branch')
         commit_hash = branches[raw_branch]["sha"]
         branch = raw_branch.split()[0]