forgebuild module

forgebuild.build(platform: str, resolutions: List[str], languages: List[str], history_file) None[source]

Builds the project for the specified platforms, resolutions, and languages.

Parameters:
  • platform (str): The target platform for the build (‘windows’ or ‘linux’).

  • resolutions (List[str]): The resolutions to build to (‘hd’, ‘fullhd’ or ‘4k’).

  • languages (List[str]): The languages to build for (‘en’ or ‘pt’).

  • history_file (str): The name of the file containing the story.

Return:

None

forgebuild.compile_bootloader(platform_name: str) None[source]

Compiles the bootloader for the specific platform.

Parameters:
  • platform_name (str): The name of the target platform (‘windows’ or ‘linux’).

Return:

None

forgebuild.extract_scenes(file_path: str) Tuple[List[str], Set[str], Set[str]][source]

Extracts scenes, mentioned choices, and mentioned scenes from the specified file.

Parameters:
  • file_path (str): The path to the file containing the story.

Return:

Tuple[List[str], Set[str], Set[str]]: A tuple containing lists of scenes, mentioned choices, and mentioned scenes.

forgebuild.print_warning(message: str) None[source]

Prints a warning message with orange color in the terminal.

Parameters:
  • message (str): The warning message to be printed.

Return:

None

forgebuild.resize_images(resolution: str) None[source]

Resizes scene images according to the specified resolution.

Parameters:
  • resolution (str): The target resolution for resizing (‘hd’, ‘fullhd’ or ‘4k’).

Return:

None