Skip to main content

Module host_bundle

Module host_bundle 

Source
Expand description

Where the server’s own CEF bundle lives.

The bundle is staged per server version beside forge’s machine-local state by scripts/stage-browser-host.sh; it is fixed to that directory, never to the launch directory (hard rule 14).

Re-exports§

use std::path::Path; 🔒
use std::path::PathBuf; 🔒

Constants§

APP
The bundle’s directory name, as the staging script writes it.
EXECUTABLE 🔒
The bundle’s executable, as its Info.plist names it.
EXECUTABLE_NAME
The bundle’s executable name, as its Info.plist names it.

Functions§

app_support
The app-support base forge’s machine-local state sits under.
check 🔒
checked_executable
The host executable, checked against this server’s own version.
executable
The executable inside the bundle that runs as a host.
install_root
The directory every staged version’s bundle sits under, so a reaper can match a host of ANY staged version rather than only this build’s.
path
The installed Forge Browser.app, under this server’s own version.
prune_other_versions
Delete every staged bundle that is not this server’s own version.
prune_other_versions_in 🔒
version 🔒
The bundle’s CFBundleVersion, read out of its Info.plist. The staging script writes the key’s value as the next <string>.