nuitka build: also use dist/binary for output

This commit is contained in:
Thomas Waldmann
2026-06-04 18:31:57 +02:00
parent 2768548032
commit fb53f44f0f
+2 -1
View File
@@ -3,7 +3,7 @@
set -euo pipefail
OUTPUT_DIR="build"
OUTPUT_DIR="dist/binary"
OUTPUT_FILENAME="borg-nuitka.exe" # .exe does NOT mean windows here
SRC_DIR="src/borg"
@@ -13,6 +13,7 @@ echo "Building single-file binary of borgbackup..."
# We use --assume-yes-for-downloads to avoid interactive prompts in automated runs.
# We set PYTHONPATH=src to ensure the local version of borg is used.
# We include cffi to avoid runtime ModuleNotFoundError in argon2-cffi.
mkdir -p $OUTPUT_DIR
PYTHONPATH=src python -m nuitka \
--mode=onefile \
--assume-yes-for-downloads \