返回提交历史
Modified
.github/workflows/build-packages.yml
+4
-4
Modified
g4f_cli.py
+0
-3
XFEstudio/gpt4free
Update build
3dbb01ce
代码差异
2 个文件
+4
-7
@@ -343,9 +343,9 @@ jobs:
343
343
- name: Calculate hash and size of ZIP
344
344
id: hash
345
345
run: |
346
HASH_X64=$(sha256sum ./artifacts/x64/g4f-windows-*_x64.zip | cut -d' ' -f1)
346
HASH_X64=$(sha256sum ./artifacts/x64/g4f-windows-*-x64.zip | cut -d' ' -f1)
347
347
echo "hash_x64=${HASH_X64}" >> $GITHUB_OUTPUT
348
SIZE_X64=$(stat -c%s ./artifacts/x64/g4f-windows-*_x64.zip)
348
SIZE_X64=$(stat -c%s ./artifacts/x64/g4f-windows-*-x64.zip)
349
349
echo "size_x64=${SIZE_X64}" >> $GITHUB_OUTPUT
350
350
- name: Create WinGet manifest
351
351
run: |
@@ -371,7 +371,7 @@ jobs:
371
371
NestedInstallerFiles:
372
372
- RelativeFilePath: g4f-windows-${{ needs.prepare.outputs.version }}-x64.exe
373
373
PortableCommandAlias: g4f
374
InstallerUrl: https://github.com/xtekky/gpt4free/releases/download/${{ needs.prepare.outputs.version }}/g4f-windows-${{ needs.prepare.outputs.version }}_x64.zip
374
InstallerUrl: https://github.com/xtekky/gpt4free/releases/download/${{ needs.prepare.outputs.version }}/g4f-windows-${{ needs.prepare.outputs.version }}-x64.zip
375
375
InstallerSha256: ${{ steps.hash.outputs.hash_x64 }}
376
376
ManifestType: installer
377
377
ManifestVersion: 1.4.0
@@ -437,7 +437,7 @@ jobs:
437
437
- PyPI: `pip install g4f==${{ needs.prepare.outputs.version }}`
438
438
439
439
**Executables:**
440
- Windows x64: `g4f-windows-${{ needs.prepare.outputs.version }}_x64.zip`
440
- Windows x64: `g4f-windows-${{ needs.prepare.outputs.version }}-x64.zip`
441
441
- Linux x64: `g4f-linux-${{ needs.prepare.outputs.version }}-x64`
442
442
- macOS x64: `g4f-macos-${{ needs.prepare.outputs.version }}-x64`
443
443
- macOS ARM64: `g4f-macos-${{ needs.prepare.outputs.version }}-arm64`
@@ -4,9 +4,6 @@ Entry point for g4f CLI executable builds
4
4
This file is used as the main entry point for building executables with Nuitka
5
5
"""
6
6
7
import g4f.debug
8
g4f.debug.version_check = False
9
10
7
if __name__ == "__main__":
11
8
from g4f.cli import main
12
9
main()