-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathupdate_system.bat
More file actions
36 lines (30 loc) · 1.12 KB
/
update_system.bat
File metadata and controls
36 lines (30 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
@echo off
REM TechScript Update Script — replaces all system tech.exe with the latest build
echo.
echo ====================================================
echo TechScript System Updater
echo ====================================================
echo.
set SRC=%~dp0runtime\target\x86_64-pc-windows-msvc\release\techscript.exe
if not exist "%SRC%" (
echo [ERROR] No built binary found. Run build_v1.0.3.bat first!
pause
exit /b 1
)
echo [1/3] Updating AppData\Local\TechScript...
copy /Y "%SRC%" "%LOCALAPPDATA%\TechScript\bin\tech.exe" 2>nul
if %ERRORLEVEL% NEQ 0 echo Skipped (path not found)
echo [2/3] Updating .techscript\bin...
copy /Y "%SRC%" "%USERPROFILE%\.techscript\bin\tech.exe" 2>nul
if %ERRORLEVEL% NEQ 0 echo Skipped (path not found)
echo [3/3] Updating Python Scripts...
copy /Y "%SRC%" "%LOCALAPPDATA%\Programs\Python\Python310\Scripts\tech.exe" 2>nul
if %ERRORLEVEL% NEQ 0 echo Skipped (path not found)
echo.
echo === Verification ===
tech version
echo.
echo ====================================================
echo Update complete!
echo ====================================================
pause