feat: add PySide6 clipboard uploader with Nuitka release tooling

This commit is contained in:
Logic
2026-03-25 09:52:20 +08:00
commit c34af53878
11 changed files with 1262 additions and 0 deletions

23
build-nuitka.sh Executable file
View File

@@ -0,0 +1,23 @@
#!/usr/bin/env bash
set -euo pipefail
SCRIPT_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)"
cd "${SCRIPT_DIR}"
export XDG_CACHE_HOME="${XDG_CACHE_HOME:-${SCRIPT_DIR}/.cache}"
if [[ ! -x .venv/bin/python ]]; then
"${SCRIPT_DIR}/setup-venv.sh"
fi
. .venv/bin/activate
python -m nuitka \
--onefile \
--plugin-enable=pyside6 \
--output-dir="${SCRIPT_DIR}/dist" \
--output-filename="superbed-uploader.bin" \
--assume-yes-for-downloads \
--include-package=requests \
"${SCRIPT_DIR}/superbed_qt_uploader.py"
echo "构建完成:${SCRIPT_DIR}/dist/superbed-uploader.bin"