mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2026-08-24 10:14:12 -05:00
* fix(nu): add early return guard when oh-my-posh is not available If a user uninstalls oh-my-posh without removing the autoload script, the script would still run on every Nu startup and produce errors. Add an early return guard at the top of omp.nu that exits the script immediately if the executable is no longer available. Handles both install modes: - Absolute path (standard install): \path exists\ - Base name only (MSIX / --strict mode): \which\ Fixes #7245 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * fix(msi): accept WiX v7 EULA in build script WiX v7 now requires explicit EULA acceptance under the Open Source Maintenance Fee policy. Add -acceptEula wix7 to the wix build command so CI releases don't fail. See: https://docs.firegiant.com/wix/osmf/#direct-acceptance Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * fix(nu): guard path exists check to absolute/relative paths only When the executable is stored as a bare name (e.g. MSIX / --strict mode), \path exists\ resolves against the current working directory and may incorrectly return true if an unrelated file with the same name exists there. Only apply the \path exists\ check when the executable string looks like a path (contains a separator or starts with . / ~); otherwise rely solely on \which\ for the PATH-based lookup. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
MSI Package
Prerequisites
Build the package
This guide assumes and advices the use of PowerShell as your shell environment for this purpose.
Set the environment variables
$env:VERSION = "1.3.37"
Build the installer
wix build -arch arm64 -out install-arm64.msi
Install the package
For the current user
install-arm64.msi
For all users
install-arm64.msi ALLUSERS=1