mirror of
https://github.com/xtekky/gpt4free.git
synced 2025-12-06 02:30:41 -08:00
Update Nuitka build script to include --onefile argument and improve output verification
This commit is contained in:
parent
6aa0a6a535
commit
83e1519165
1 changed files with 2 additions and 2 deletions
|
|
@ -39,7 +39,7 @@ echo "Output: ${OUTPUT_DIR}"
|
|||
case "${PLATFORM}" in
|
||||
"windows"|"win32")
|
||||
OUTPUT_NAME="g4f-windows-${VERSION}-${ARCH}.exe"
|
||||
NUITKA_ARGS="--windows-console-mode=attach"
|
||||
NUITKA_ARGS="--windows-console-mode=attach --onefile"
|
||||
;;
|
||||
"darwin"|"macos")
|
||||
OUTPUT_NAME="g4f-macos-${VERSION}-${ARCH}"
|
||||
|
|
@ -79,7 +79,7 @@ python -m nuitka ${NUITKA_COMMON_ARGS} ${NUITKA_ARGS} g4f_cli.py
|
|||
echo "Build completed: ${OUTPUT_DIR}/${OUTPUT_NAME}"
|
||||
|
||||
# Verify the build
|
||||
if compgen -G "${OUTPUT_DIR}/*" > /dev/null; then
|
||||
if [[ -f "${OUTPUT_DIR}/${OUTPUT_NAME}" ]]; then
|
||||
echo "✓ Build successful!"
|
||||
ls -la "${OUTPUT_DIR}/${OUTPUT_NAME}"
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue