From 992b137d1ecc24d0845319e71ff1053b50a24da4 Mon Sep 17 00:00:00 2001 From: paisley <8197966+su8su@users.noreply.github.com> Date: Mon, 9 Mar 2026 18:30:54 +0800 Subject: [PATCH] v0.1.24-alpha.7 --- package.json | 2 +- scripts/installer.nsh | 16 ++++++++++++---- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index d11abc9..b2fd0d9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "clawx", - "version": "0.1.24-alpha.6", + "version": "0.1.24-alpha.7", "pnpm": { "onlyBuiltDependencies": [ "@whiskeysockets/baileys", diff --git a/scripts/installer.nsh b/scripts/installer.nsh index 3168634..d0d4df1 100644 --- a/scripts/installer.nsh +++ b/scripts/installer.nsh @@ -84,9 +84,13 @@ InitPluginsDir ClearErrors File "/oname=$PLUGINSDIR\update-user-path.ps1" "${PROJECT_DIR}\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 + nsExec::ExecToStack '"$SYSDIR\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -NonInteractive -ExecutionPolicy Bypass -File "$PLUGINSDIR\update-user-path.ps1" -Action add -CliDir "$INSTDIR\resources\cli"' + Pop $0 + Pop $1 + StrCmp $0 "error" 0 +2 DetailPrint "Warning: Failed to launch PowerShell while updating PATH." + StrCmp $0 "timeout" 0 +2 + DetailPrint "Warning: PowerShell PATH update timed out." StrCmp $0 "0" 0 +2 Goto _ci_done DetailPrint "Warning: PowerShell PATH update exited with code $0." @@ -99,9 +103,13 @@ InitPluginsDir ClearErrors File "/oname=$PLUGINSDIR\update-user-path.ps1" "${PROJECT_DIR}\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 + nsExec::ExecToStack '"$SYSDIR\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -NonInteractive -ExecutionPolicy Bypass -File "$PLUGINSDIR\update-user-path.ps1" -Action remove -CliDir "$INSTDIR\resources\cli"' + Pop $0 + Pop $1 + StrCmp $0 "error" 0 +2 DetailPrint "Warning: Failed to launch PowerShell while removing PATH entry." + StrCmp $0 "timeout" 0 +2 + DetailPrint "Warning: PowerShell PATH removal timed out." StrCmp $0 "0" 0 +2 Goto _cu_pathDone DetailPrint "Warning: PowerShell PATH removal exited with code $0."