Fixed windows plugin dir
This commit is contained in:
parent
b6589efff9
commit
49a87ca309
|
|
@ -108,7 +108,8 @@ cd Layers
|
|||
install.bat
|
||||
```
|
||||
|
||||
Installs to `%APPDATA%\kicad\10.0\3rdparty\plugins\com.jesshunter.layers\`.
|
||||
Installs to `%USERPROFILE%\Documents\KiCad\10.0\plugins\com.jesshunter.layers\`
|
||||
(or the OneDrive-redirected equivalent).
|
||||
|
||||
Optional: `winget install GNOME.librsvg` gives you `rsvg-convert` for regenerating icons
|
||||
from `resources/Layers.svg`. Not required to build.
|
||||
|
|
|
|||
|
|
@ -11,7 +11,11 @@ if %ERRORLEVEL% neq 0 (
|
|||
exit /b 1
|
||||
)
|
||||
|
||||
set "INSTALL_ROOT=%APPDATA%\kicad\10.0\3rdparty\plugins"
|
||||
rem Resolve the real Documents folder (respects OneDrive / folder redirection).
|
||||
for /f "usebackq delims=" %%i in (`powershell -NoProfile -Command "[Environment]::GetFolderPath('MyDocuments')"`) do set "DOCS=%%i"
|
||||
if not defined DOCS set "DOCS=%USERPROFILE%\Documents"
|
||||
|
||||
set "INSTALL_ROOT=%DOCS%\KiCad\10.0\plugins"
|
||||
set "INSTALL_DIR=%INSTALL_ROOT%\com.jesshunter.layers"
|
||||
if not exist "%INSTALL_ROOT%" mkdir "%INSTALL_ROOT%" >nul 2>&1
|
||||
|
||||
|
|
@ -24,6 +28,8 @@ if exist "%INSTALL_DIR%\LICENCE" del /q "%INSTALL_DIR%\LICENCE"
|
|||
set "STAGE=%ROOT%\build\bin\com.jesshunter.layers"
|
||||
xcopy /e /i /y /q "%STAGE%" "%INSTALL_DIR%" >nul
|
||||
|
||||
echo.
|
||||
echo installed: %INSTALL_DIR%
|
||||
echo.
|
||||
popd
|
||||
endlocal
|
||||
|
|
|
|||
Loading…
Reference in New Issue