File tree Expand file tree Collapse file tree 3 files changed +32
-2
lines changed
Expand file tree Collapse file tree 3 files changed +32
-2
lines changed Original file line number Diff line number Diff line change 1+ param (
2+ [switch ] $InstallRequirements ,
3+ [switch ] $InstallPyInstaller ,
4+ [switch ] $Compile
5+ )
6+ Set-Location $PSScriptRoot
7+ $didSomething = $false
8+
9+ if ($InstallRequirements -or $InstallPyInstaller ) {
10+ & py - m pip install -- user -- upgrade pip
11+ }
12+ if ($InstallRequirements ) {
13+ & py - m pip install -- user -- upgrade - r ./ requirements.txt
14+ # The 'python3-tk' package is also required on Linux.
15+ $didSomething = $true
16+ }
17+ if ($InstallPyInstaller ) {
18+ & py - m pip install -- user -- upgrade pyinstaller
19+ $didSomething = $true
20+ }
21+ if ($Compile ) {
22+ & py - m PyInstaller -- onefile -- specpath ./ build ./ vk_inviter.py
23+ Remove-Item - Recurse ./ build, ./ __pycache__
24+ $didSomething = $true
25+ }
26+
27+ if (! $didSomething ) {
28+ Get-Help $PSCommandPath
29+ }
Original file line number Diff line number Diff line change 1+ PyYAML
2+ Pillow
3+ vk
Original file line number Diff line number Diff line change 66from io import BytesIO
77from urllib .request import urlopen
88
9- # sudo apt install python3-tk
10- # pip install --user --upgrade PyYAML Pillow vk
119import tkinter as tk
1210from PIL import Image , ImageTk
1311import vk
You can’t perform that action at this time.
0 commit comments