okami.mom/strata
git clone https://git.nkp.pet/okami.mom/strata
66bc88907
main
1@echo off 2rem Update Strata without starting the model (#475): the newest code (git pull, when this folder is a git clone), then 3rem what START-HERE.bat does before a start - the engine (a new one when this version needs it), the Python packages, 4rem each installed model's settings and draft subset. The model files are not touched. Start the model later with 5rem START-HERE.bat. Options are passed on to setup.py. The bundled Python (python\ beside this file) is used when 6rem there is one: START-HERE.bat, which this file runs, picks it. 7set local 8titleStrata -update 9cd / d "%~dp0" 10rem All of it in one block: cmd reads a .bat file while it runs it, and the git pull can change this very file. 11( 12if exist ".git" ( 13where git >nul 2 >nul || ( 14echo This folder is a git clone ,but git is not on PATH : install Git for Windows ^(winget install Git .Git ^) 15echo or run "git pull" here yourself ,then run UPDATE .bat again . 16pause 17exit / b 1 18 ) 19echo Getting the newest Strata ^(git pull ^) ... 20git pull --ff -only 21if errorlevel 1 ( 22rem The history was rewritten on 2026-10-06, see #1276: a clone from before has no commit in common with origin/main. 23set "REWR=" 24git merge -base HEAD origin /main >nul 2 >nul 25if errorlevel 1 set "REWR=1" 26git rev -parse --is -shallow -repository 2 >nul |findstr /x true >nul && set "REWR =" 27 ifdefined REWR ( 28 echo. 29 echoThis clone is on the repository 's old history ^(cleaned up on 2026 -10 -06 ^):it has no commit in common 30 echowith origin /main ,so it cannot be updated by git pull . 31 set "DIRTY =" 32 for /f "delims =" %%i in ('git status --porcelain --untracked -files ^=no ')do set "DIRTY =1 " 33 ifdefined DIRTY ( 34 echoYou have local changes to tracked files here ,so nothing was touched .To moveto the new history 35 echoyourself ^(your untracked files ,models and settings stay where they are ^): 36 echogit branch pre -cleanup -backup 37 echogit stash push 38 echogit checkout -B main origin /main 39 echothen run UPDATE .bat again . 40 pause 41 exit /b 1 42 ) 43 set "BK =pre -cleanup -backup " 44git rev -parse --verify -q refs /heads /pre -cleanup -backup >nul 2 >nul && set "BK =pre -cleanup -backup -%RANDOM %" 45 set "BR =main " 46 for /f "delims =" %%i in ('git symbolic -ref --short -q HEAD 2 ^>nul ')do set "BR =%%i " 47call git branch %%BK %%HEAD 48 iferrorlevel 1 ( 49 echoCould not make the backup branch :nothing was updated . 50 pause 51 exit /b 1 52 ) 53call git checkout -q -B %%BR %%origin /main 54 iferrorlevel 1 ( 55call git branch -D %%BK %% >nul 2 >nul 56 echo. 57 echoCould not moveto the new history ^(the reason is above ^):nothing was updated .By hand : 58 echogit checkout -B main origin /main 59 pause 60 exit /b 1 61 ) 62call echoMoved to the new history .Your old commits are kept in the branch %%BK %%. 63 echoUntracked files ^(models ,settings ,the engine ^)were not touched . 64 )else ( 65 echo. 66 echogit pull did not succeed ^(the reason is above ^):nothing was updated .Files you changed here can stop it : 67 echo "git status "lists them . 68 pause 69 exit /b 1 70 ) 71 ) 72 )else ( 73 echoThis copyof Strata was not made with git ,so it cannot fetch new files itself .Download the newest one : 74 echohttps ://github .com /Niko1221 /Strata /archive /refs /heads /main .zip 75 echounzip it anywhere and run START-HERE .bat ^(or UPDATE .bat ^)in it :it finds the model files in Strata -data 76 echoand sets itself up the same way -nothing big is downloaded again . 77 echoChecking this copy's engine and settings meanwhile ... 78 ) 79call "%~dp0START -HERE .bat " --update %* 80 ifnot errorlevel 1 pause 81 exit /b 82)