From 3dbb01ce2c16097d6725869249b14dd00c8a1640 Mon Sep 17 00:00:00 2001 From: hlohaus <983577+hlohaus@users.noreply.github.com> Date: Wed, 27 Aug 2025 01:07:16 +0200 Subject: [PATCH] Update build --- .github/workflows/build-packages.yml | 8 ++++---- g4f_cli.py | 3 --- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build-packages.yml b/.github/workflows/build-packages.yml index b35dbd06..3abf000d 100644 --- a/.github/workflows/build-packages.yml +++ b/.github/workflows/build-packages.yml @@ -343,9 +343,9 @@ jobs: - name: Calculate hash and size of ZIP id: hash run: | - HASH_X64=$(sha256sum ./artifacts/x64/g4f-windows-*_x64.zip | cut -d' ' -f1) + HASH_X64=$(sha256sum ./artifacts/x64/g4f-windows-*-x64.zip | cut -d' ' -f1) echo "hash_x64=${HASH_X64}" >> $GITHUB_OUTPUT - SIZE_X64=$(stat -c%s ./artifacts/x64/g4f-windows-*_x64.zip) + SIZE_X64=$(stat -c%s ./artifacts/x64/g4f-windows-*-x64.zip) echo "size_x64=${SIZE_X64}" >> $GITHUB_OUTPUT - name: Create WinGet manifest run: | @@ -371,7 +371,7 @@ jobs: NestedInstallerFiles: - RelativeFilePath: g4f-windows-${{ needs.prepare.outputs.version }}-x64.exe PortableCommandAlias: g4f - InstallerUrl: https://github.com/xtekky/gpt4free/releases/download/${{ needs.prepare.outputs.version }}/g4f-windows-${{ needs.prepare.outputs.version }}_x64.zip + InstallerUrl: https://github.com/xtekky/gpt4free/releases/download/${{ needs.prepare.outputs.version }}/g4f-windows-${{ needs.prepare.outputs.version }}-x64.zip InstallerSha256: ${{ steps.hash.outputs.hash_x64 }} ManifestType: installer ManifestVersion: 1.4.0 @@ -437,7 +437,7 @@ jobs: - PyPI: `pip install g4f==${{ needs.prepare.outputs.version }}` **Executables:** - - Windows x64: `g4f-windows-${{ needs.prepare.outputs.version }}_x64.zip` + - Windows x64: `g4f-windows-${{ needs.prepare.outputs.version }}-x64.zip` - Linux x64: `g4f-linux-${{ needs.prepare.outputs.version }}-x64` - macOS x64: `g4f-macos-${{ needs.prepare.outputs.version }}-x64` - macOS ARM64: `g4f-macos-${{ needs.prepare.outputs.version }}-arm64` diff --git a/g4f_cli.py b/g4f_cli.py index 0ec2fd56..3572b3c6 100644 --- a/g4f_cli.py +++ b/g4f_cli.py @@ -4,9 +4,6 @@ Entry point for g4f CLI executable builds This file is used as the main entry point for building executables with Nuitka """ -import g4f.debug -g4f.debug.version_check = False - if __name__ == "__main__": from g4f.cli import main main() \ No newline at end of file