HiNC-Manager-Win/HiNC-update.bat

9 lines
371 B
Batchfile

cd /D "%~dp0."
set "git=%~dp0PortableGit/bin/git.exe"
set "remoteRepo=https://HiNC-Public-Client:HiNCProduct20241117@superhightech-gitea.webredirect.org/HiNC-Deploy/HiNC-Win-Product.git"
"%git%" clone "%remoteRepo%" HiNC
cd HiNC
"%git%" remote set-url origin "%remoteRepo%"
"%git%" update-index --skip-worktree appsettings.json
"%git%" reset --hard && "%git%" pull
cd ..