Skip to main content

Module player

Module player 

Source
Expand description

Resolving, caching, and downloading pite-player binaries for export.

When exporting a project, the engine looks for a player binary matching the target platform next to the engine binary. If one is not present (for example, when running from a bare cargo install or when cross-exporting without having pre-downloaded other platform bundles), the fallback downloads the platform’s player release archive from GitHub releases and unpacks it into the toolchain cache (~/.cache/pite/toolchains/players/ or PITE_PLAYER_DIR).

Functions§

candidate_player_names
Candidate player binary names for platform.
download_and_extract_player
Download the player archive and unpack it into the cache directory.
ensure_executable
Ensure that path has executable permissions on Unix systems.
ensure_player_binary
Ensure a player binary is available for platform, checking cache first and downloading if absent.
find_cached_player
Look for an already cached player binary for platform.
player_archive_name
Release archive filename for platform at tag.
player_bin_name
Player binary file name on its own platform, always carrying the platform name.
player_cache_dir
Where player binaries live in cache. Never inside the project or repo.
player_dir
Subdirectory in cache for a specific version and platform.
player_download_url
Download URL for the player archive for platform at tag.