pyinstaller win32 에서 UPX 사용 법과 비교

in python •  6 years ago 

  • windows(32) 환경에서 PyQT(PySide) 로 만들어진 응용 프로그램을 pyinstaller 를 이용해서 exe 파일로 만들어서 배포
  • UPX 옵션을 사용하면 속도나 사이즈 면에서 더 낫다는 평을 듣고 테스트 해 봄
  • UPX 최신 버전 다운로드 https://upx.github.io/ 해서 기존 프로젝트 아래 서브 디렉토리에 압축을 품
projects 
├── main.py
├── main.spec
├── build
│   └── main.exe
│       ├── main.exe.exe.manifest
│       ├── base_library.zip
│       ├── out00-Analysis.toc
│       ├── out00-EXE.toc
│       ├── out00-PKG.pkg
│       ├── out00-PKG.toc
│       ├── out00-PYZ.pyz
│       ├── out00-PYZ.toc
│       ├── warnmain.exe.txt
│       └── xref-main.exe.html
├── upx394w
│       └── upx.exe
└── dist
        └── main.exe
  • 실행 방법
  • 용량 비교

기존: 16,156,045 바이트
UPX: 11,855,550 바이트

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!