nuitka_build.sh
#!/bin/bash
filePath=$1function Usage()
{echo -e "Usage:$0 [filePath]"exit 0
}if [[ $filePath == "" ]];thenUsage
fi# --jobs 是并行编译参数,数量不能大于cpu的实际核心数 (lscpu 可以查看)
python3 -m nuitka --onefile --output-dir=dist --jobs=3 $filePath
nuitka_build.sh
#!/bin/bash
filePath=$1function Usage()
{echo -e "Usage:$0 [filePath]"exit 0
}if [[ $filePath == "" ]];thenUsage
fi# --jobs 是并行编译参数,数量不能大于cpu的实际核心数 (lscpu 可以查看)
python3 -m nuitka --onefile --output-dir=dist --jobs=3 $filePath