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.
|
- @echo off
- REM Build Bag1.exe (single file, no console window).
- REM Run from this folder: build_exe.bat
- REM Requires: pip install -r requirements-build.txt
-
- set SCRIPT=Bag1.py
- set NAME=Bag1
-
- if not exist "%SCRIPT%" (
- echo Error: %SCRIPT% not found. Run from the python folder.
- exit /b 1
- )
-
- pip install -r requirements-build.txt
- pyinstaller --onefile --windowed --name "%NAME%" "%SCRIPT%"
-
- echo.
- echo Done. Exe is in: dist\%NAME%.exe
- echo Copy dist\%NAME%.exe to the customer PC and run it (no Python needed).
- pause
|