diff --git a/pyinstaller_make.bat b/pyinstaller_make.bat index 81b3f0a..d5ac479 100644 --- a/pyinstaller_make.bat +++ b/pyinstaller_make.bat @@ -1,12 +1,10 @@ pyinstaller ^ - -y ^ + --noconfirm ^ --additional-hooks-dir=. ^ --hidden-import=packaging ^ --hidden-import=packaging.version ^ --hidden-import=packaging.specifiers ^ --hidden-import=packaging.requirements ^ - -w ^ - --onefile ^ --name MagneticTrap ^ --icon Household-Mouse-Trap.ico ^ run_magnetic_trap.py diff --git a/run_magnetic_trap.py b/run_magnetic_trap.py index 1ae08cd..c43d494 100644 --- a/run_magnetic_trap.py +++ b/run_magnetic_trap.py @@ -1,5 +1,9 @@ from arduino_timetable import run_application -if __name__ == '__main__': +if __name__=='__main__': 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' + )