-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild_app.bat
35 lines (26 loc) · 958 Bytes
/
build_app.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
@echo off
title Building Files ^& Folders on taskbar...
echo (1/4) Deleting temporary files...
echo.
rmdir /q /s "build"
rmdir /q /s "dist"
del /f /q "fnf_on_taskbar.spec"
echo.
echo (2/4) Installing dependencies...
echo.
python -m pip install -r requirements.txt
python -m pip install pyinstaller
echo.
echo (3/4) Building with PyInstaller...
echo.
python -m PyInstaller main.pyw --onedir --icon icon.ico --version-file "version.txt" --name "fnf_on_taskbar" --add-data "separators;./separators/" --add-data "icon.ico;." --add-data "OPEN_SOURCE_LICENSES.txt;." --exclude-module "numpy" --exclude-module "setuptools" --exclude-module "wheel" --exclude-module "importlib_metadata" --exclude-module "markupsafe"
echo .
echo (4/4) Deleting temporary files...
echo.
rmdir /q /s "build"
del /f /q "fnf_on_taskbar.spec"
ren "dist" "build"
echo.
echo Files ^& Folders on taskbar has been successfully built.
echo Press any key to exit...
timeout /t -1 > NUL