Skip to content

Commit

Permalink
Modified the batch file to create sfx archive
Browse files Browse the repository at this point in the history
  • Loading branch information
Jscina committed Jan 4, 2021
1 parent 5891c59 commit c33162e
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions create_exe.bat
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
@echo off
pyinstaller -D -w -i=locked.ico PyPass.py
copy %CD%\locked.ico %CD%\dist\PyPass\locked.ico
pyinstaller -F -w -i=locked.ico PyPass.py
mkdir %CD%\PyPass
copy %CD%\locked.ico %CD%\PyPass\locked.ico
copy %CD%\LICENSE %CD%\PyPass\LICENSE
rd /s /q %CD%\build
move /y %CD%\dist\PyPass %CD%\PyPass
move /y %CD%\dist\PyPass.exe %CD%\PyPass\PyPass.exe
rd /s /q %CD%\dist
del %CD%\PyPass.spec
del %CD%\PyPass.spec
7z a -SFX PyPass_SFX.exe PyPass
rd /s /q %CD%\PyPass

0 comments on commit c33162e

Please sign in to comment.