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
posted @ 2025-09-09 15:08  BrianSun  阅读(11)  评论(0)    收藏  举报