-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompile64.bat
More file actions
31 lines (31 loc) · 932 Bytes
/
compile64.bat
File metadata and controls
31 lines (31 loc) · 932 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
@echo off
goto :BEGIN
:QTFIVEORG
del dist\%APPNAME%\qtcore4.dll
del dist\%APPNAME%\qtgui4.dll
del dist\%APPNAME%\qtopengl4.dll
del dist\%APPNAME%\qtsvg4.dll
del dist\%APPNAME%\qtxml4.dll
exit /b 0
:BEGIN
set SOURCE_PATH=%PYTHONPATH%\Scripts
IF %SOURCE_PATH:~-1%==\ SET SOURCE_PATH=%SOURCE_PATH:~0,-1%
set APPNAME=ScryptCalc
set FILENAME=main.py
set ORIGINAL_PATH="%~dp1"
set OUTPUT_PATH="%~dp0Winx64\"
cd /d "%~dp0"
FOR /D %%p IN ("build") DO rmdir "%%p" /s /q
rmdir build
FOR /D %%p IN ("dist") DO rmdir "%%p" /s /q
rmdir dist
pyinstaller.exe -F --onedir --noconsole --name=%APPNAME% %FILENAME% --clean --paths="%~dp0..\Lib\site-packages" --icon="%~dp0\icon.ico"
del dist\%APPNAME%\libopenblas*.dll /q
if exist "%CD%\dist\%APPNAME%\pyqt5" ( call :QTFIVEORG )
xcopy /s dist\*.* %OUTPUT_PATH% /y
del %APPNAME%.spec
FOR /D %%p IN ("build") DO rmdir "%%p" /s /q
rmdir build
FOR /D %%p IN ("dist") DO rmdir "%%p" /s /q
rmdir dist
pause