-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.ps1
More file actions
20 lines (18 loc) · 779 Bytes
/
install.ps1
File metadata and controls
20 lines (18 loc) · 779 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
python -m venv ./venv-windows
./venv-windows/Scripts/activate
python -m pip install -r requirements.txt
$Shell = New-Object -ComObject ("WScript.Shell")
$ShortCut = $Shell.CreateShortcut((pwd).Path + "\run_server.lnk")
$ShortCut.TargetPath= (pwd).Path + "\venv-windows\Scripts\pythonw.exe"
$ShortCut.Arguments="-m chat.server.qt_server"
$ShortCut.WorkingDirectory = (pwd).Path;
$ShortCut.WindowStyle = 1;
$ShortCut.Description = "Qt chat server";
$ShortCut.Save()
$ShortCut = $Shell.CreateShortcut((pwd).Path + "\run_client.lnk")
$ShortCut.TargetPath= (pwd).Path + "\venv-windows\Scripts\pythonw.exe"
$ShortCut.Arguments="-m chat.client.client_setup"
$ShortCut.WorkingDirectory = (pwd).Path;
$ShortCut.WindowStyle = 1;
$ShortCut.Description = "Qt chat client";
$ShortCut.Save()