Refactor build scripts and API to enhance model handling and improve timeout functionality

This commit is contained in:
hlohaus 2025-09-04 22:21:42 +02:00
parent 1edd0fff17
commit 25b35ddf99
8 changed files with 131 additions and 117 deletions

View file

@ -43,22 +43,21 @@ case "${PLATFORM}" in
;;
"darwin"|"macos")
OUTPUT_NAME="g4f-macos-${VERSION}-${ARCH}"
NUITKA_ARGS="--macos-create-app-bundle"
NUITKA_ARGS="--macos-create-app-bundle --onefile"
;;
"linux")
OUTPUT_NAME="g4f-linux-${VERSION}-${ARCH}"
NUITKA_ARGS=""
NUITKA_ARGS="--onefile"
;;
*)
OUTPUT_NAME="g4f-${PLATFORM}-${VERSION}-${ARCH}"
NUITKA_ARGS=""
NUITKA_ARGS="--onefile"
;;
esac
# Basic Nuitka arguments
NUITKA_COMMON_ARGS="
--standalone
--onefile
--output-filename=${OUTPUT_NAME}
--output-dir=${OUTPUT_DIR}
--remove-output