feat: add PySide6 clipboard uploader with Nuitka release tooling
This commit is contained in:
23
build-nuitka.sh
Executable file
23
build-nuitka.sh
Executable 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"
|
||||
Reference in New Issue
Block a user