mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-07-17 11:07:11 +08:00
fix: playwright version in win7
This commit is contained in:
12
.github/workflows/release-win7.yml
vendored
12
.github/workflows/release-win7.yml
vendored
@@ -57,10 +57,14 @@ jobs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
# Deps are mostly unpinned, so pip will resolve the newest versions
|
# Most deps are unpinned, so pip auto-picks the newest Python-3.8 wheel.
|
||||||
# that still ship a Python 3.8 wheel. This is exactly what we want for
|
# But a few are pinned to versions with NO 3.8 wheel and must be relaxed
|
||||||
# a Win7-targeted backend.
|
# for this legacy build. We rewrite them into a throwaway requirements
|
||||||
pip install -r desktop/build/requirements-desktop.txt
|
# file so the repo's source stays untouched (main pipeline keeps its
|
||||||
|
# pins). playwright 1.48.0 is the last release with a cp38 wheel.
|
||||||
|
sed 's/^playwright==.*/playwright==1.48.0/' \
|
||||||
|
desktop/build/requirements-desktop.txt > /tmp/requirements-win7.txt
|
||||||
|
pip install -r /tmp/requirements-win7.txt
|
||||||
pip install pyinstaller
|
pip install pyinstaller
|
||||||
# Run from repo root so the spec's relative datas resolve correctly.
|
# Run from repo root so the spec's relative datas resolve correctly.
|
||||||
pyinstaller desktop/build/cowagent-backend.spec \
|
pyinstaller desktop/build/cowagent-backend.spec \
|
||||||
|
|||||||
Reference in New Issue
Block a user