Skip to main content

render_powershell_with_policy

Function render_powershell_with_policy 

Source
pub fn render_powershell_with_policy(
    c: &DistributionContract,
    m: &ReleaseManifest,
    s: &BootstrapSpec,
    policy: &BootstrapInstallPolicyV1,
) -> Result<String, BootstrapError>
Expand description

Render deterministic PowerShell for direct, bundle, and archive releases.

policy is validated here exactly as it is for the POSIX renderer, and is required for bundle and archive targets. Windows has no exec bit, so the InstallMode selected for each install name is carried but has no effect: verified bytes are moved into place and inherit the destination directory ACL, for Executable and Data alike. A policy valid for POSIX is therefore valid here, and the mode difference is not observable in the emitted script.