instructions 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. Instructions to create the exes for this version:
  2. The installation command should be:
  3. pyinstaller main-script-name.py --windowed
  4. Leave off --windowed for testing.
  5. Step 1:
  6. Use pyinstaller from within your tensorflow environment to make
  7. the exe for the cmdsorting script. It is stand alone and will
  8. work on the command line.
  9. Step 2:
  10. Use pyinstaller from within the msys2 mingw64 gtk building
  11. environment to create an exe for the gui.
  12. Step 3:
  13. Place the dist folder created in step 1 for the cmdsorting exe
  14. and place it into the dist folder created for the gui. So it
  15. should look like:
  16. dist/animal-gui/animal-gui-folder/dist/cmdsorting/cmdsorting-files
  17. Step 4:
  18. Copy a checkpoint folder into the dist/animal-gui/ folder. Also,
  19. make a directory filled with images to sort, and another directory
  20. that will recieve the sorted images. Hard coded to 100x100 images
  21. right now.
  22. Step 5:
  23. Copy the .glade file into the animal-gui.exe folder.
  24. Another option is to use the -F flag with pyinstaller to make the exes
  25. contain all the neccessary files, but that increases load time on windows
  26. by a lot.