XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet
公开
关注 0 Fork 0 Star 0
返回提交历史

XFEstudio/gpt4free

Update Nuitka build script to include --onefile argument and improve output verification

83e15191
hlohaus <983577+hlohaus@users.noreply.github.com>
提交于

代码差异

1 个文件 +2 -2
Modified scripts/build-nuitka.sh +2 -2
@@ -39,7 +39,7 @@ echo "Output: ${OUTPUT_DIR}"
39 39 case "${PLATFORM}" in
40 40 "windows"|"win32")
41 41 OUTPUT_NAME="g4f-windows-${VERSION}-${ARCH}.exe"
42 NUITKA_ARGS="--windows-console-mode=attach"
42 NUITKA_ARGS="--windows-console-mode=attach --onefile"
43 43 ;;
44 44 "darwin"|"macos")
45 45 OUTPUT_NAME="g4f-macos-${VERSION}-${ARCH}"
@@ -79,7 +79,7 @@ python -m nuitka ${NUITKA_COMMON_ARGS} ${NUITKA_ARGS} g4f_cli.py
79 79 echo "Build completed: ${OUTPUT_DIR}/${OUTPUT_NAME}"
80 80
81 81 # Verify the build
82 if compgen -G "${OUTPUT_DIR}/*" > /dev/null; then
82 if [[ -f "${OUTPUT_DIR}/${OUTPUT_NAME}" ]]; then
83 83 echo "✓ Build successful!"
84 84 ls -la "${OUTPUT_DIR}/${OUTPUT_NAME}"
85 85 else