-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBulid.bat
More file actions
38 lines (31 loc) · 819 Bytes
/
Bulid.bat
File metadata and controls
38 lines (31 loc) · 819 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
37
38
@echo off
title Building PyToExe EXE...
cls
echo ========================================
echo Building PyToExe with PyInstaller
echo Using fixed runtime temp directory
echo ========================================
echo.
REM delete old build/dist folders
rmdir /s /q build 2>nul
rmdir /s /q dist 2>nul
del /q PyToExe.spec 2>nul
REM create runtime directory
set RUNTIME_DIR=%LOCALAPPDATA%\PyToExeRuntime
if not exist "%RUNTIME_DIR%" mkdir "%RUNTIME_DIR%"
echo Runtime directory:
echo %RUNTIME_DIR%
echo.
pyinstaller ^
--noconfirm ^
--clean ^
--onefile ^
--name PyToExe ^
--icon=icons\pytoexe.ico ^
--runtime-tmpdir "%RUNTIME_DIR%" ^
PyToExe.py
echo.
echo ======= DONE =======
echo Runtime dir used: %RUNTIME_DIR%
echo Dist folder ready.
pause