From 6bb20128132897e804ae5ae9e7fe57a8ef973b6f Mon Sep 17 00:00:00 2001 From: paisley <8197966+su8su@users.noreply.github.com> Date: Mon, 9 Mar 2026 16:21:10 +0800 Subject: [PATCH] fix windows package --- scripts/installer.nsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/installer.nsh b/scripts/installer.nsh index 88d5ed5..2c60f66 100644 --- a/scripts/installer.nsh +++ b/scripts/installer.nsh @@ -83,7 +83,7 @@ ; This avoids NSIS string-buffer limits and preserves long PATH values. InitPluginsDir ClearErrors - File "/oname=$PLUGINSDIR\update-user-path.ps1" "..\resources\cli\win32\update-user-path.ps1" + File "/oname=$PLUGINSDIR\update-user-path.ps1" "resources\cli\win32\update-user-path.ps1" ExecWait '"$SYSDIR\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -NonInteractive -ExecutionPolicy Bypass -File "$PLUGINSDIR\update-user-path.ps1" -Action add -CliDir "$INSTDIR\resources\cli"' $0 IfErrors 0 +2 DetailPrint "Warning: Failed to launch PowerShell while updating PATH." @@ -98,7 +98,7 @@ ; Remove resources\cli from user PATH via PowerShell so long PATH values are handled safely InitPluginsDir ClearErrors - File "/oname=$PLUGINSDIR\update-user-path.ps1" "..\resources\cli\win32\update-user-path.ps1" + File "/oname=$PLUGINSDIR\update-user-path.ps1" "resources\cli\win32\update-user-path.ps1" ExecWait '"$SYSDIR\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -NonInteractive -ExecutionPolicy Bypass -File "$PLUGINSDIR\update-user-path.ps1" -Action remove -CliDir "$INSTDIR\resources\cli"' $0 IfErrors 0 +2 DetailPrint "Warning: Failed to launch PowerShell while removing PATH entry."