-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.bat
More file actions
20 lines (14 loc) · 737 Bytes
/
install.bat
File metadata and controls
20 lines (14 loc) · 737 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Z:
cd Z:\Documents\moritz_tools
git pull
IF EXIST ".venv\Scripts\pip3.11.exe" (
echo "Alte Python Version erkannt"
del /F /Q /S .venv
)
python -m venv .venv
call .venv\Scripts\activate.bat
pip install --upgrade -r requirements.txt
powershell "$s=(New-Object -COM WScript.Shell).CreateShortcut('Z:\Start Menu\Programs\Startup\moritz_tools.lnk');$s.TargetPath='Z:\Documents\moritz_tools\.venv\Scripts\pythonw.exe';$s.Arguments='Z:\Documents\moritz_tools\autorun.py';$s.IconLocation='Z:\Documents\moritz_tools\.venv\Scripts\pythonw.exe';$s.WorkingDirectory='Z:\Documents\moritz_tools';$s.WindowStyle=7;$s.Save()"
python autorun.py
del "Z:\Start Menu\Programs\Startup\vsc_c.bat"
del "Z:\Start Menu\Programs\Startup\moritz.bat"