[pr-fix] get-* fetchers: start Windows PowerShell without the caller's PSModulePath #90
Loading…
Reference in a new issue
No description provided.
Delete branch "dutchmega/Darner:powershell-module-path"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What it changes
darner get-fsrstarted from PowerShell 7 failed at every file:darner.exe passes its environment to
powershell.exe. PowerShell 7'sPSModulePathlists 7's modules first, so Windows PowerShell loads 7'sMicrosoft.PowerShell.Utility, which it cannot use, andGet-FileHashis missing. (pwsh clears the variable itself when it startspowershell.exedirectly; darner.exe in between does not.)apps/darner/src/play.rs: newrun_fetcherstartspowershell.exewithoutPSModulePath, so Windows PowerShell builds its own. The NVIDIA, AMD FSR, MFG Unlocker and D3D12 fetchers all use it.How it was tested
73faa80Get-Command Get-FileHashfails inpowershell.exewith the inheritedPSModulePath, and works without it.darner get-fsrfrom pwsh with this build: checks all three DLLs and fetches the licence.get-dlss,get-mfgandget-d3d12not run separately; they use the samerun_fetcher.Checklist
main.docs/asset-policy.md.Checked for overlap
Contributor role (optional)