| # reforgePortable | |
| Experimenting to build a portable version of stable-diffusion-webui-reForge | |
| This version uses the third-party WinPython portable version, which is recommended at various places and includes more stuff than the official | |
| portable version. Maybe this provides more tools for installing additional extensions, and it has a negligibly larger footprint than the | |
| official version. There is an even larger WinPython version, but I don't know what the differences are so we will go with the smaller one. | |
| *** | |
| ## Prerequisites | |
| Microsoft Visual C++ 2015 Redistributable | |
| https://www.microsoft.com/en-us/download/details.aspx?id=48145 | |
| Microsoft Visual C++ 2015-2022 Redistributable | |
| https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170#visual-studio-2015-2017-2019-and-2022 | |
| *** | |
| ## Prepare folders | |
| 1) Create folder C:\SD\reforge-portable | |
| 2) Create subfolder C:\SD\reforge-portable\system | |
| 3) Create subfolder C:\SD\reforge-portable\system\git | |
| 4) Create subfolder C:\SD\reforge-portable\system\python | |
|  | |
| *** | |
| ## Install Git portable | |
| Browse to https://git-scm.com/downloads/win and download "64-bit Git for Windows Portable" | |
|  | |
| Execute downloaded exe file and extract to C:\SD\reforge-portable\system\git | |
|  | |
| *** | |
| ## Install WinPython | |
| Browse to https://github.com/winpython/winpython/releases/tag/6.1.20230527 and download "Winpython64-3.10.11.1dot.exe" | |
|  | |
| Run the downloaded executable and extract to a temporary directory. Select all files from "winpython\WPy64-310111\python-3.10.11.amd64" | |
|  | |
| and copy them to "C:\SD\reforge-portable\system\python" | |
|  | |
| *** | |
| ## Get run scripts | |
| - Either download the full [Forge portable zip](https://github.com/lllyasviel/stable-diffusion-webui-forge?tab=readme-ov-file#installing-forge) | |
| and extract only the 3 bat files from the root | |
| - or download them from my HF space here [/runscipts/](https://huggingface.co/datasets/Xeno443/reForge-portable/tree/main/runscripts) | |
| Copy these three files into C:\SD\reforge-portable | |
|  | |
| *** | |
| ## Git clone reForge | |
| Open cmd.exe in C:\SD\reforge-portable. | |
| 1) Run environment.bat | |
| 2) Run `git clone https://github.com/Panchovix/stable-diffusion-webui-reForge webui` | |
|  | |
| *** | |
| ## First-run | |
| Run `run.bat`. This should now start the normal reForge requirements installations which may take quite a while | |
|  | |
| If everything goes well the webUI page will open after everything is complete. |