Browse Source

added pyinstaller batch file

pyinstaller
Holger Frey 7 years ago
parent
commit
89dce8123f
  1. 4
      pyinstaller_make.bat
  2. 8
      run_magnetic_trap.py

4
pyinstaller_make.bat

@ -1,12 +1,10 @@
pyinstaller ^ pyinstaller ^
-y ^ --noconfirm ^
--additional-hooks-dir=. ^ --additional-hooks-dir=. ^
--hidden-import=packaging ^ --hidden-import=packaging ^
--hidden-import=packaging.version ^ --hidden-import=packaging.version ^
--hidden-import=packaging.specifiers ^ --hidden-import=packaging.specifiers ^
--hidden-import=packaging.requirements ^ --hidden-import=packaging.requirements ^
-w ^
--onefile ^
--name MagneticTrap ^ --name MagneticTrap ^
--icon Household-Mouse-Trap.ico ^ --icon Household-Mouse-Trap.ico ^
run_magnetic_trap.py run_magnetic_trap.py

8
run_magnetic_trap.py

@ -1,5 +1,9 @@
from arduino_timetable import run_application from arduino_timetable import run_application
if __name__ == '__main__': if __name__=='__main__':
arduino_commands = {'open': 'o', 'close': 'c'} arduino_commands = {'open': 'o', 'close': 'c'}
run_application(arduino_commands, "It's a trap!") run_application(
arduino_commands,
"It's a trap!",
icon='Household-Mouse-Trap.ico'
)

Loading…
Cancel
Save