def packDistFolderToOnefileBootstrap(onefile_output_filename, dist_dir): postprocessing_logger.info( "Creating single file from dist folder, this may take a while.") onefile_logger.info("Running bootstrap binary compilation via Scons.") # Now need to append to payload it, potentially compressing it. compressor_python = getCompressorPython() # First need to create the bootstrap binary for unpacking. _runOnefileScons( quiet=not Options.isShowScons(), onefile_compression=compressor_python is not None, ) if isWin32Windows(): executePostProcessingResources(manifest=None, onefile=True) Plugins.onBootstrapBinary(onefile_output_filename) if isMacOS(): addMacOSCodeSignature(filenames=[onefile_output_filename]) runOnefileCompressor( compressor_python=compressor_python, dist_dir=dist_dir, onefile_output_filename=onefile_output_filename, start_binary=getResultFullpath(onefile=False), )