diff --git a/generate_standalone_package.py b/generate_standalone_package.py new file mode 100644 index 0000000000000000000000000000000000000000..cb52d49b0d8407cf9e1be81a1e91dfa1fc61aa9b --- /dev/null +++ b/generate_standalone_package.py @@ -0,0 +1,26 @@ +import os +import platform +import shutil +import subprocess + +HERE = os.path.dirname(os.path.realpath(__file__)) + +if __name__ == '__main__': + operating_system = platform.system() + if operating_system.lower() == 'darwin': + operating_system = 'macOS' + machine_type = platform.machine() + + subprocess.run( + [ + "pyinstaller", + "--noconfirm", + "--clean", + "--name", "calibrate_receiver", + "--onefile", + "--paths", "C:\\Users\\loren\\AppData\\Local\\Programs\\Python\\Python38\\Lib\\site-packages\\", + "--hidden-import", "pyvisa", + "--windowed", #"--console", + "src/gui_support.py" + ], + check=True) \ No newline at end of file