返回提交历史
Modified
.github/workflows/build-packages.yml
+1
-56
XFEstudio/gpt4free
Update build-packages.yml
f9ad738a
代码差异
1 个文件
+1
-56
@@ -193,60 +193,6 @@ jobs:
193
193
name: macos-exe
194
194
path: dist/g4f-macos-*
195
195
196
# Debian Package
197
build-deb:
198
runs-on: ubuntu-latest
199
needs: prepare
200
strategy:
201
matrix:
202
arch: [amd64, arm64]
203
steps:
204
- uses: actions/checkout@v4
205
- name: Set up Python
206
uses: actions/setup-python@v5
207
with:
208
python-version: "3.x"
209
- name: Install packaging tools
210
run: |
211
sudo apt-get update
212
sudo apt-get install -y build-essential debhelper
213
- name: Install build tools
214
run: |
215
python -m pip install --upgrade pip
216
python -m pip install build
217
- name: Create Debian package structure
218
run: |
219
mkdir -p debian/g4f/usr/bin
220
mkdir -p debian/g4f/usr/lib/python3/dist-packages
221
mkdir -p debian/g4f/DEBIAN
222
- name: Build Python package
223
env:
224
G4F_VERSION: ${{ needs.prepare.outputs.version }}
225
run: |
226
python setup.py build
227
python setup.py install --root=debian/g4f --prefix=/usr
228
- name: Create control file
229
run: |
230
cat > debian/g4f/DEBIAN/control << EOF
231
Package: g4f
232
Version: ${{ needs.prepare.outputs.version }}
233
Section: python
234
Priority: optional
235
Architecture: ${{ matrix.arch }}
236
Maintainer: Tekky <support@g4f.ai>
237
Description: The official gpt4free repository
238
Various collection of powerful language models
239
Depends: python3, python3-requests, python3-aiohttp
240
EOF
241
- name: Build .deb package
242
run: |
243
dpkg-deb --build debian/g4f g4f-${{ needs.prepare.outputs.version }}-${{ matrix.arch }}.deb
244
- name: Upload Debian package
245
uses: actions/upload-artifact@v4
246
with:
247
name: deb-${{ matrix.arch }}
248
path: g4f-*.deb
249
250
196
# Docker Images (reuse existing workflow logic)
251
197
build-docker:
252
198
runs-on: ubuntu-latest
@@ -365,7 +311,7 @@ jobs:
365
311
# Release Creation
366
312
create-release:
367
313
runs-on: ubuntu-latest
368
needs: [prepare, build-pypi, build-windows-exe, build-linux-exe, build-macos-exe, build-deb, create-winget-manifest]
314
needs: [prepare, build-pypi, build-windows-exe, build-linux-exe, build-macos-exe, create-winget-manifest]
369
315
if: needs.prepare.outputs.is_release == 'true'
370
316
steps:
371
317
- uses: actions/checkout@v4
@@ -394,7 +340,6 @@ jobs:
394
340
- macOS: Download `g4f-macos-${{ needs.prepare.outputs.version }}`
395
341
396
342
**System Packages:**
397
- Debian/Ubuntu: Download appropriate `.deb` file for your architecture
398
343
- WinGet: `winget install g4f` (after manifest approval)
399
344
400
345
**Docker:**