Browse Source

added doc for packaging pitfals on Mac M1

Mojtaba Eslahi 1 năm trước cách đây
mục cha
commit
85b66adc66
1 tập tin đã thay đổi với 12 bổ sung0 xóa
  1. 12 0
      website/documentation/sections/configuration_deployment.py

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

@@ -234,6 +234,18 @@ 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 execution 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('''