浏览代码

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

Documentation update: packaging pitfals on Mac M1
Falko Schindler 1 年之前
父节点
当前提交
9d37f010f3
共有 1 个文件被更改,包括 13 次插入0 次删除
  1. 13 0
      website/documentation/sections/configuration_deployment.py

+ 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('''