1
0
Эх сурвалжийг харах

Merge pull request #2109 from meslahik/packaging-tips-mac-m1

Documentation update: packaging pitfals on Mac M1
Falko Schindler 1 жил өмнө
parent
commit
9d37f010f3

+ 13 - 0
website/documentation/sections/configuration_deployment.py

@@ -234,6 +234,19 @@ def content() -> None:
         See <https://github.com/zauberzeug/nicegui/issues/681> for more information.
     ''').classes('bold-links arrow-links')
 
+    ui.markdown('''
+        **Common pitfalls on Mac M1**
+        
+        - If new processes are spawned in an endless loop, try adding the following lines at the beginning of your code:
+
+            ```python
+            from multiprocessing import freeze_support
+            freeze_support()
+            ```
+        
+        - If processes are left behind after closing the app, try packaging the app without the `--windowed` argument.
+    ''')
+
     subheading('NiceGUI On Air')
 
     ui.markdown('''