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

浙公网安备 33010602011771号