-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclean.bat
More file actions
35 lines (28 loc) · 793 Bytes
/
clean.bat
File metadata and controls
35 lines (28 loc) · 793 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
@echo off
setlocal
REM Always run from the folder this .bat lives in
pushd "%~dp0"
echo CWD: %CD%
REM Clean old outputs in THIS project only
if exist build rmdir /s /q build
if exist dist rmdir /s /q dist
del /q *.spec 2>nul
for /r %%F in (__pycache__) do if exist "%%F" rmdir /s /q "%%F"
REM ---- Adjust these as needed ----
set ENTRY=main.py
set APPNAME=Infinite Map Concept
REM Bundle folders/files (recursive when you pass the folder on Windows)
set ADDDATA=^
--add-data "classes;classes" ^
--add-data "etc;etc" ^
--add-data "main.kv;."
REM Force where the spec, build cache, and dist go
pyinstaller --noconfirm --clean --onefile --windowed ^
--name "%APPNAME%" ^
--specpath "%CD%" ^
--workpath "%CD%" ^
--distpath "%CD%\dist" ^
%ADDDATA% "%ENTRY%"
popd
endlocal
pause