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

XFEstudio/gpt4free

Remove some build steps

e722d006
hlohaus <hlohaus@users.noreply.github.com>
提交于

代码差异

1 个文件 +1 -112
Modified .github/workflows/build-packages.yml +1 -112
@@ -185,121 +185,10 @@ jobs:
185 185 build-args: |
186 186 G4F_VERSION=${{ needs.prepare.outputs.version }}
187 187
188 # Debian Packages
189 # build-debian:
190 # runs-on: ubuntu-latest
191 # needs: prepare
192 # strategy:
193 # matrix:
194 # architecture: [amd64, arm64, armhf]
195 # steps:
196 # - uses: actions/checkout@v4
197 # - name: Set up Python
198 # uses: actions/setup-python@v5
199 # with:
200 # python-version: "3.x"
201 # - name: Install build dependencies
202 # run: |
203 # sudo apt-get update
204 # sudo apt-get install -y dpkg-dev build-essential python3-setuptools
205 # python3 -m pip install --upgrade pip
206 # pip3 install -r requirements-min.txt
207 # pip3 install -e .
208 # - name: Build Debian package
209 # env:
210 # G4F_VERSION: ${{ needs.prepare.outputs.version }}
211 # ARCH: ${{ matrix.architecture }}
212 # run: |
213 # chmod +x scripts/build-deb.sh
214 # ./scripts/build-deb.sh
215 # - name: Upload Debian package
216 # uses: actions/upload-artifact@v4
217 # with:
218 # name: debian-${{ matrix.architecture }}
219 # path: g4f-*-${{ matrix.architecture }}.deb
220
221 # WinGet Package Manifest
222 create-winget-manifest:
223 runs-on: ubuntu-latest
224 needs: [prepare, build-g4f-go]
225 if: needs.prepare.outputs.is_release == 'true'
226 steps:
227 - uses: actions/checkout@v4
228 - name: Download g4f-go Windows zip
229 uses: actions/download-artifact@v4
230 with:
231 name: g4f-go-windows
232 path: ./artifacts/windows
233 - name: Calculate hash and size of ZIP
234 id: hash
235 run: |
236 HASH_X64=$(sha256sum ./artifacts/windows/dist/g4f-go-*-windows-amd64.zip | cut -d' ' -f1)
237 echo "hash_x64=${HASH_X64}" >> $GITHUB_OUTPUT
238 SIZE_X64=$(stat -c%s ./artifacts/windows/dist/g4f-go-*-windows-amd64.zip)
239 echo "size_x64=${SIZE_X64}" >> $GITHUB_OUTPUT
240 - name: Create WinGet manifest
241 run: |
242 mkdir -p winget/manifests/g/g4f/${{ needs.prepare.outputs.version }}
243
244 # Version manifest
245 cat > winget/manifests/g/g4f/${{ needs.prepare.outputs.version }}/g4f.yaml << EOF
246 PackageIdentifier: g4f
247 PackageVersion: ${{ needs.prepare.outputs.version }}
248 DefaultLocale: en-US
249 ManifestType: version
250 ManifestVersion: 1.4.0
251 EOF
252
253 # Installer manifest
254 cat > winget/manifests/g/g4f/${{ needs.prepare.outputs.version }}/g4f.installer.yaml << EOF
255 PackageIdentifier: g4f
256 PackageVersion: ${{ needs.prepare.outputs.version }}
257 Installers:
258 - Architecture: x64
259 InstallerType: zip
260 NestedInstallerType: portable
261 NestedInstallerFiles:
262 - RelativeFilePath: g4f-go.exe
263 PortableCommandAlias: g4f
264 InstallerUrl: https://github.com/xtekky/gpt4free/releases/download/${{ needs.prepare.outputs.version }}/g4f-go-${{ needs.prepare.outputs.version }}-windows-amd64.zip
265 InstallerSha256: ${{ steps.hash.outputs.hash_x64 }}
266 ManifestType: installer
267 ManifestVersion: 1.4.0
268 EOF
269
270 # Locale manifest
271 cat > winget/manifests/g/g4f/${{ needs.prepare.outputs.version }}/g4f.locale.en-US.yaml << EOF
272 PackageIdentifier: g4f
273 PackageVersion: ${{ needs.prepare.outputs.version }}
274 PackageLocale: en-US
275 Publisher: GPT4Free
276 PublisherUrl: https://github.com/xtekky/gpt4free
277 PackageName: g4f
278 PackageUrl: https://github.com/xtekky/gpt4free
279 License: GPL-3.0
280 LicenseUrl: https://github.com/xtekky/gpt4free/blob/main/LICENSE
281 ShortDescription: The official gpt4free repository
282 Description: Various collection of powerful language models
283 Tags:
284 - ai
285 - gpt
286 - chatgpt
287 - openai
288 - free
289 - client
290 ManifestType: defaultLocale
291 ManifestVersion: 1.4.0
292 EOF
293 - name: Upload WinGet manifest
294 uses: actions/upload-artifact@v4
295 with:
296 name: winget-manifest
297 path: winget/
298
299 188 # Release Creation
300 189 create-release:
301 190 runs-on: ubuntu-latest
302 needs: [prepare, build-pypi, build-g4f-go, create-winget-manifest]
191 needs: [prepare, build-pypi, build-g4f-go]
303 192 if: needs.prepare.outputs.is_release == 'true'
304 193 permissions:
305 194 contents: write