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()
i) and "version.txt" in os.listdir(i): generated_folder_path = i 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')