From 15edbf475ef10ed2767bb7483c633e9d62e6e2f3 Mon Sep 17 00:00:00 2001 From: vedithal-amd Date: Tue, 11 Mar 2025 13:34:37 -0400 Subject: [PATCH] Standalone binary no self execute fix (#603) * Fix nuitka command --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 39b4627be8..7382f795f7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -391,8 +391,11 @@ add_custom_target( # Create VERSION.sha file COMMAND git -C ${PROJECT_SOURCE_DIR} rev-parse HEAD > VERSION.sha # Build standalone binary + # NOTE: --no-deployment-flag=self-execution is used to avoid self-execution and fork + # bombs as explained in + # https://nuitka.net/user-documentation/common-issue-solutions.html#fork-bombs-self-execution COMMAND - ${Python3_EXECUTABLE} -m nuitka --mode=onefile + ${Python3_EXECUTABLE} -m nuitka --mode=onefile --no-deployment-flag=self-execution --include-data-files=${PROJECT_SOURCE_DIR}/VERSION*=./ --enable-plugin=no-qt --include-package=dash_svg --include-package-data=dash_svg --include-package=dash_bootstrap_components