-
Notifications
You must be signed in to change notification settings - Fork 2
/
create_exe.bat
52 lines (35 loc) · 1.46 KB
/
create_exe.bat
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
@echo off
set name="Property Tracker"
set src="run_property_tracker.py"
venv\Scripts\pyinstaller.exe -F -n %name% -p "venv\Lib\site-packages" --distpath ./bin %src%
signtool sign /a bin\\%name%.exe
signtool timestamp /t http://timestamp.digicert.com bin\\%name%.exe
del %name%".spec"
rmdir /s /q "__pycache__" "build"
set name="Analyze Properties"
set src="run_analyses.py"
venv\Scripts\pyinstaller.exe -F -n %name% -p "venv\Lib\site-packages" --distpath ./bin %src%
signtool sign /a bin\\%name%.exe
signtool timestamp /t http://timestamp.digicert.com bin\\%name%.exe
del %name%".spec"
rmdir /s /q "__pycache__" "build"
set name="Refresh Listings & Analyses"
set src="run_refresh_listings_and_analyses.py"
venv\Scripts\pyinstaller.exe -F -n %name% -p "venv\Lib\site-packages" --distpath ./bin %src%
signtool sign /a bin\\%name%.exe
signtool timestamp /t http://timestamp.digicert.com bin\\%name%.exe
del %name%".spec"
rmdir /s /q "__pycache__" "build"
set name="Print Single Property Analysis"
set src="run_single_property_analysis_print_only.py"
venv\Scripts\pyinstaller.exe -F -n %name% -p "venv\Lib\site-packages" --distpath ./bin %src%
signtool sign /a bin\\%name%.exe
signtool timestamp /t http://timestamp.digicert.com bin\\%name%.exe
del %name%".spec"
rmdir /s /q "__pycache__" "build"
echo.
echo --------------------------------------------------------------
echo Executable and source files located in "bin" directory.
echo.
pause
rmdir /s /q "__pycache__" "build"