ARTICLE DETAIL

资讯详情

深耕网站建设与运营推广的一线实战洞察。

debian11 nuitka 打包python3 脚本

debian11 nuitka 打包python3 脚本

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
返回列表