!/bin/bash
echo “Starting Nuitka compilation…”
清理之前的编译文件
rm -f app.bin compile.log
nuitka使用更简洁的编译命令
nohup python -m nuitka \
–onefile \
–lto=yes \
–assume-yes-for-downloads \
–include-package-data=requests,yaml \
–enable-plugin=anti-bloat \
-o app.bin \
app.py > compile.log 2>&1 &
echo “Compilation process started in background (PID: $!). Check progress with: tail -f compile.log”