소스 검색

added doc for packaging pitfals on Mac M1

Mojtaba Eslahi 1 년 전
부모
커밋
85b66adc66
1개의 변경된 파일12개의 추가작업 그리고 0개의 파일을 삭제
  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('''