본문 바로가기
Python

파이썬 - exe 빌드 자동화 스크립트

by 앗사비 2017. 10. 25.
728x90

 

set WORKSPACE=%USERPROFILE%\Desktop\mytu

 

::go to workspace

cd %WORKSPACE%

 

::delete exist files

cd dist

DEL /s /f /q *.*

 

::make exe

cd ..

pyinstaller --onefile --noconsole mytu.py

 

::copy ui

copy mytu.ui .\dist

 

::UNC setting

pushd "\\192.168.12.34\QC_Storage\Etc\mytu"

set NETWORK_FOLDER=%CD% 

DEL /s /f /q *.*

 

::copy files to network folder

c:

cd %WORKSPACE%\dist

copy . %NETWORK_FOLDER%

 

::UNC setting disconnect

popd

 

---

 

cmd 네트워크 경로에 대한 참고 링크

http://cleverdj.tistory.com/109

 

---

 

https://pypi.org/project/auto-py-to-exe/

 

728x90