From 8be62683dc133a78e06586d3329bc55acc1f092f Mon Sep 17 00:00:00 2001 From: qing <1776177662@qq.com> Date: Tue, 28 Jul 2026 22:53:35 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20BotOps=20=E6=B7=BB=E5=8A=A0=20=5Finst.?= =?UTF-8?q?sh=20=E5=8D=95=E6=96=87=E4=BB=B6=E7=BC=96=E8=AF=91=E8=84=9A?= =?UTF-8?q?=E6=9C=AC=EF=BC=88nuitka=20--onefile=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BotOps/_inst.sh | 11 +++++++++++ BotOps/requirements.txt | 1 + 2 files changed, 12 insertions(+) create mode 100755 BotOps/_inst.sh diff --git a/BotOps/_inst.sh b/BotOps/_inst.sh new file mode 100755 index 0000000..8cd264c --- /dev/null +++ b/BotOps/_inst.sh @@ -0,0 +1,11 @@ +#!/bin/bash +# 编译 BotOps 为独立单文件(不运行):产出 ./botops.bin +# 用法: ./_inst.sh +cd "$(dirname "$0")" || exit +source venv/bin/activate +python3 -m nuitka --standalone --onefile \ + --assume-yes-for-downloads \ + --include-package-data=textual \ + --output-filename=botops.bin \ + app.py +echo "编译完成: ./botops.bin(运行: ./botops.bin [ws://host:port])" diff --git a/BotOps/requirements.txt b/BotOps/requirements.txt index f89aaf5..7616ac0 100644 --- a/BotOps/requirements.txt +++ b/BotOps/requirements.txt @@ -1,2 +1,3 @@ textual>=0.60.0 websockets>=11.0 +nuitka