Skip to content

Commit 0822abc

Browse files
authored
Add files via upload
1 parent d45cca4 commit 0822abc

File tree

18 files changed

+3706
-1442
lines changed

18 files changed

+3706
-1442
lines changed

Bulid.bat

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
@echo off
2+
title Building PyToExe EXE...
3+
cls
4+
5+
echo ========================================
6+
echo Building PyToExe with PyInstaller
7+
echo Using fixed runtime temp directory
8+
echo ========================================
9+
echo.
10+
11+
REM delete old build/dist folders
12+
rmdir /s /q build 2>nul
13+
rmdir /s /q dist 2>nul
14+
del /q PyToExe.spec 2>nul
15+
16+
REM create runtime directory
17+
set RUNTIME_DIR=%LOCALAPPDATA%\PyToExeRuntime
18+
if not exist "%RUNTIME_DIR%" mkdir "%RUNTIME_DIR%"
19+
20+
echo Runtime directory:
21+
echo %RUNTIME_DIR%
22+
echo.
23+
24+
pyinstaller ^
25+
--noconfirm ^
26+
--clean ^
27+
--onefile ^
28+
--name PyToExe ^
29+
--icon=icons\pytoexe.ico ^
30+
--runtime-tmpdir "%RUNTIME_DIR%" ^
31+
PyToExe.py
32+
33+
echo.
34+
echo ======= DONE =======
35+
echo Runtime dir used: %RUNTIME_DIR%
36+
echo Dist folder ready.
37+
38+
pause

0 commit comments

Comments
 (0)