Skip to content

Commit

Permalink
修复构建工作目录
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhaoZuohong committed Jun 10, 2023
1 parent cc3c682 commit 634689d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/pyinstaller-win-shawn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,22 +47,26 @@ jobs:
cp -r dist ../main/
- name: Install dependencies
working-directory: ./main
shell: cmd
run: |
python -m venv venv
venv\Scripts\python -m pip install -r requirements.txt
venv\Scripts\python -m pip install pyinstaller
- name: Patch Paddle
working-directory: ./main
shell: cmd
run: |
copy .\packaging\image.py .\venv\Lib\site-packages\paddle\dataset\image.py /y
copy .\packaging\network.py .\venv\Lib\site-packages\paddleocr\ppocr\utils\network.py /y
copy .\packaging\paddleocr.py .\venv\Lib\site-packages\paddleocr\paddleocr.py /y
- name: Make package
working-directory: ./main
shell: cmd
run: |
venv\Scripts\pyinstaller .\webview.spec
- uses: actions/upload-artifact@v3
working-directory: ./main
with:
name: mower
path: dist\mower.exe

0 comments on commit 634689d

Please sign in to comment.