@@ -28,11 +28,14 @@ class ConverterUI:
2828 save_normals_ID = 0
2929 generate_normals_ID = 0
3030
31- ### +++++++++++++++++++++++++ PACKAGE INTO SINGLE EXECUTABLE ++++++++++++++++++++++++++++++++++
31+ ### +++++++++++++++++++++++++ PACKAGE INTO SINGLE WINDOWS EXECUTABLE ++++++++++++++++++++++++++++++++++
3232 #Use this prompt in the terminal to package this script into a single executable for your system
3333 #You need to have PyInstaller installed in your local environment
34- # pyinstaller Sequence_Converter_UI.py --collect-all=pymeshlab --collect-all=numpy --icon=resources/logo.ico -F
34+ # pyinstaller Sequence_Converter_UI.py --icon=resources/logo.ico -F
35+
3536 ### +++++++++++++++++++++++++ PACKAGE INTO SINGLE MACOS APP ++++++++++++++++++++++++++++++++++
37+ # Use this prompt in the terminal to package this script into a single macOS app
38+ # Please note that texture conversion is not yet supported on macOS!
3639 # pyinstaller Sequence_Converter_UI.py --icon=resources/logo.icns --windowed --strip
3740
3841 isRunning = False
@@ -184,14 +187,20 @@ def single_conversion_finished_cb(self, error, errorText):
184187
185188 def InitDefaultPaths (self ):
186189
187- # determine if application is a script file or frozen exe and get the executable path
190+ # Determine on what platform we are running (macOS or Windows)
191+ if (sys .platform != "darwin" ) and (sys .platform != "win32" ):
192+ print ("Your platform is currently not supported! The Sequence Converter supports Windows and macOS (partially)" )
193+ sys .exit (1 )
194+
195+ # Determine if application is a script file or frozen exe and get the executable path
188196 if getattr (sys , 'frozen' , False ):
189197 self .applicationPath = os .path .abspath (os .path .dirname (sys .executable ))
190198 elif __file__ :
191199 self .applicationPath = os .path .abspath (os .path .dirname (__file__ ))
192200
193201 self .applicationPath += os .sep
194202
203+ # Determine the resources path depending on the OS
195204 if (sys .platform == "darwin" ) and (getattr (sys , 'frozen' , False )):
196205 self .resourcesPath = os .path .abspath (self .applicationPath + "../Resources/" )
197206 else :
0 commit comments