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

22
superbed-upload.sh Executable file
View File

@@ -0,0 +1,22 @@
#!/usr/bin/env bash
set -euo pipefail
SCRIPT_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)"
BIN_PATH="${SCRIPT_DIR}/dist/superbed-uploader.bin"
VENV_PYTHON="${SCRIPT_DIR}/.venv/bin/python"
PY_APP="${SCRIPT_DIR}/superbed_qt_uploader.py"
if [[ -x "${BIN_PATH}" ]]; then
exec "${BIN_PATH}" "$@"
fi
if [[ -x "${VENV_PYTHON}" ]]; then
exec "${VENV_PYTHON}" "${PY_APP}" "$@"
fi
if command -v python3 >/dev/null 2>&1; then
exec python3 "${PY_APP}" "$@"
fi
echo "未找到可用运行环境。请先执行 ${SCRIPT_DIR}/setup-venv.sh 或构建 dist/superbed-uploader.bin" >&2
exit 1