-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbuild_exe.bat
More file actions
36 lines (31 loc) · 815 Bytes
/
Copy pathbuild_exe.bat
File metadata and controls
36 lines (31 loc) · 815 Bytes
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
setlocal
cd /d "%~dp0"
python -m pip show pyinstaller >nul 2>&1
if errorlevel 1 (
echo Installing PyInstaller...
python -m pip install pyinstaller
)
echo Building Windows executable...
python -m PyInstaller ^
--noconfirm ^
--windowed ^
--name MyInstantsDownloader ^
--icon main.ico ^
--add-data "archive.png;." ^
--add-data "arrow-left.png;." ^
--add-data "arrow-right.png;." ^
--add-data "download.png;." ^
--add-data "flush.png;." ^
--add-data "gear-fill.png;." ^
--add-data "house.png;." ^
--add-data "main.ico;." ^
--add-data "on.mp3;." ^
--add-data "play-fill.png;." ^
--add-data "search.png;." ^
main.py
if errorlevel 1 (
echo Build failed.
exit /b 1
)
echo Build complete. Output is in dist\MyInstantsDownloader\