Skip to content

Instantly share code, notes, and snippets.

@NoCrypt
Created January 15, 2023 05:40
Show Gist options
  • Save NoCrypt/2dd764867d792aa21e676e2a98a665ed to your computer and use it in GitHub Desktop.
Save NoCrypt/2dd764867d792aa21e676e2a98a665ed to your computer and use it in GitHub Desktop.
[WINDOWS ONLY] Update your krita sd-webui plugin without moving all files manually
@ECHO off
:: Administrator power is needed for linking files (It's safe and you can see the code urself lol)
if not "%1"=="am_admin" (powershell start -verb runas '%0' am_admin & exit /b)
:: Please change variable below to your krita resource folder (not installation)
:: OR.. leave it as it be if you installed krita on default folder
set YOUR_KRITA_FOLDER=%appdata%\krita\
cd /D %YOUR_KRITA_FOLDER%\pykrita\
echo HOLD TIGHT!
echo %cd%
if exist krita_diff\ (
cd .downloaded\auto-sd-paint-ext\
git pull
) else (
mkdir .downloaded
git clone https://github.com/Interpause/auto-sd-paint-ext .downloaded\auto-sd-paint-ext
mklink /D .\krita_diff\ .\.downloaded\auto-sd-paint-ext\frontends\krita\krita_diff\
mklink .\krita_diff.desktop .\.downloaded\auto-sd-paint-ext\frontends\krita\krita_diff.desktop
cls
echo .
echo .
echo Alright, I've installed the plugin to your krita
echo To enable the Krita Plugin:
echo 1. Restart Krita.
echo 2. On the menubar, go to [Settings ^> Configure Krita...].
echo 3. On the left sidebar, go to [Python Plugin Manager].
echo 4. Look for [Stable Diffusion Plugin] and tick the checkbox.
echo 5. Restart Krita again for changes to take effect.
pause
)
@NoCrypt
Copy link
Author

NoCrypt commented Jan 15, 2023

To download without zip:

2301151242001329

@NoCrypt
Copy link
Author

NoCrypt commented Jan 15, 2023

To update the krita plugin: Run the script again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment