mirror of
https://github.com/xtekky/gpt4free.git
synced 2025-10-16 21:30:40 +08:00
Update build
This commit is contained in:
8
.github/workflows/build-packages.yml
vendored
8
.github/workflows/build-packages.yml
vendored
@@ -343,9 +343,9 @@ jobs:
|
|||||||
- name: Calculate hash and size of ZIP
|
- name: Calculate hash and size of ZIP
|
||||||
id: hash
|
id: hash
|
||||||
run: |
|
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
|
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
|
echo "size_x64=${SIZE_X64}" >> $GITHUB_OUTPUT
|
||||||
- name: Create WinGet manifest
|
- name: Create WinGet manifest
|
||||||
run: |
|
run: |
|
||||||
@@ -371,7 +371,7 @@ jobs:
|
|||||||
NestedInstallerFiles:
|
NestedInstallerFiles:
|
||||||
- RelativeFilePath: g4f-windows-${{ needs.prepare.outputs.version }}-x64.exe
|
- RelativeFilePath: g4f-windows-${{ needs.prepare.outputs.version }}-x64.exe
|
||||||
PortableCommandAlias: g4f
|
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 }}
|
InstallerSha256: ${{ steps.hash.outputs.hash_x64 }}
|
||||||
ManifestType: installer
|
ManifestType: installer
|
||||||
ManifestVersion: 1.4.0
|
ManifestVersion: 1.4.0
|
||||||
@@ -437,7 +437,7 @@ jobs:
|
|||||||
- PyPI: `pip install g4f==${{ needs.prepare.outputs.version }}`
|
- PyPI: `pip install g4f==${{ needs.prepare.outputs.version }}`
|
||||||
|
|
||||||
**Executables:**
|
**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`
|
- Linux x64: `g4f-linux-${{ needs.prepare.outputs.version }}-x64`
|
||||||
- macOS x64: `g4f-macos-${{ needs.prepare.outputs.version }}-x64`
|
- macOS x64: `g4f-macos-${{ needs.prepare.outputs.version }}-x64`
|
||||||
- macOS ARM64: `g4f-macos-${{ needs.prepare.outputs.version }}-arm64`
|
- macOS ARM64: `g4f-macos-${{ needs.prepare.outputs.version }}-arm64`
|
||||||
|
@@ -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
|
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__":
|
if __name__ == "__main__":
|
||||||
from g4f.cli import main
|
from g4f.cli import main
|
||||||
main()
|
main()
|
Reference in New Issue
Block a user