Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 
 

36 linhas
1.4 KiB

  1. # Bag3 Windows exe build (run all commands in this python/ folder)
  2. py -m pip install --upgrade pyinstaller
  3. py -m pip install --upgrade pywin32
  4. py -m pip install --upgrade Pillow "qrcode[pil]" requests
  5. py -m PyInstaller --noconfirm --clean Bag3.spec
  6. # Output: dist\Bag3\Bag3.exe plus dist\Bag3\_internal\...
  7. # Copy the ENTIRE dist\Bag3\ folder to the client PC (not only Bag3.exe).
  8. # --- If the client exe flashes and closes ---
  9. 1) On the client PC, open cmd in the Bag3 folder and run:
  10. Bag3.exe
  11. You should see the error in the console, or open bag3_startup_error.log next to Bag3.exe.
  12. 2) Compare BUILD machines (both should match):
  13. py --version
  14. py -m PyInstaller --version
  15. py -m pip show pyinstaller pywin32 Pillow qrcode requests
  16. A broken build is often caused by:
  17. - Different Python major version (e.g. 3.13 vs 3.11)
  18. - Incomplete tkinter on that Python (Store Python / partial install)
  19. - Old PyInstaller missing Tcl/Tk files in the bundle
  20. 3) Rebuild on the machine that works, or reinstall Python from python.org (64-bit)
  21. and reinstall deps above, then rebuild.
  22. 4) Bag3.spec disables UPX (upx=False) for stability; do not re-enable unless you test on the client.
  23. 5) Client needs 64-bit Windows and Microsoft VC++ Redistributable (same as your Python installer).
  24. 6) Antivirus may quarantine files under _internal\ — whitelist the Bag3 folder if the log mentions missing DLL.