Skip to content

Commit

Permalink
Improved Build Procedure
Browse files Browse the repository at this point in the history
  • Loading branch information
jkrrv committed Jun 24, 2017
1 parent 454912a commit 9f2377c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
cropped/
rawImages/
dist/
build/
*.spec
*.zip
12 changes: 9 additions & 3 deletions build.cmd
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
pip install pyinstaller

rmdir /s /q dist\webScrape
rm .\StaffPhotos.zip

rmdir /s /q dist
rmdir /s /q build

pyinstaller --onedir webScrape.py

rmdir /s /q dist\photoFaceCrop
pyinstaller --onedir photoFaceCrop.py

copy haarcascade_frontalface_default.xml dist\haarcascade_frontalface_default.xml

copy run-prod.cmd dist\run.cmd
copy run-prod.cmd dist\run.cmd


PowerShell -Command "Compress-Archive -Path .\dist\* -DestinationPath StaffPhotos.zip"

0 comments on commit 9f2377c

Please sign in to comment.