mirror of
https://github.com/backnotprop/plannotator.git
synced 2026-09-14 14:17:26 +08:00
fix: add OpenCode cache clearing to install.cmd
Windows CMD install script had no cache busting at all — OpenCode users on CMD stayed on stale plugin versions indefinitely. For provenance purposes, this commit was AI assisted.
This commit is contained in:
@@ -382,6 +382,11 @@ echo }
|
||||
echo Updated plugin hooks at !PLUGIN_HOOKS!
|
||||
)
|
||||
|
||||
REM Clear any cached OpenCode plugin to force fresh download on next run
|
||||
if exist "%USERPROFILE%\.cache\opencode\node_modules\@plannotator" rmdir /s /q "%USERPROFILE%\.cache\opencode\node_modules\@plannotator" >nul 2>&1
|
||||
if exist "%USERPROFILE%\.cache\opencode\packages\@plannotator" rmdir /s /q "%USERPROFILE%\.cache\opencode\packages\@plannotator" >nul 2>&1
|
||||
if exist "%USERPROFILE%\.bun\install\cache\@plannotator" rmdir /s /q "%USERPROFILE%\.bun\install\cache\@plannotator" >nul 2>&1
|
||||
|
||||
REM Update Pi extension if pi is installed
|
||||
where pi >nul 2>&1
|
||||
if !ERRORLEVEL! equ 0 (
|
||||
|
||||
Reference in New Issue
Block a user