修复publish

This commit is contained in:
xaoyo 2023-11-27 12:52:55 +08:00
parent 5d738366cf
commit bb57e09731
2 changed files with 16 additions and 8 deletions

View File

@ -36,14 +36,20 @@ jobs:
python -m build python -m build
python tests/build_exe.py python tests/build_exe.py
- name: test1 - name: Create Executable
run: | uses: sayyid5416/pyinstaller@v1
ls -l "${{ github.workspace }}" with:
ls -l "${{ github.workspace }}/pywxdump/show_chat/templates" python_ver: '3.8'
requirements: '${{ github.workspace }}/requirements.txt'
spec: 'dist/tmp.py'
upload_exe_with_name: 'pywxdump'
options: --onefile, --name "pywxdump", --windowed, --clean, --add-data "${{ github.workspace }}/pywxdump/version_list.json;pywxdump", --add-data "${{ github.workspace }}/pywxdump/show_chat/templates/chat.html;pywxdump/show_chat/templates", --add-data "${{ github.workspace }}/pywxdump/show_chat/templates/index.html;pywxdump/show_chat/templates", --distpath=dist
is_uploaded: false
executable_path: 'dist'
- name: Build Executable # - name: Build Executable
run: | # run: |
pyinstaller --onefile --clean --add-data "${{ github.workspace }}/pywxdump/version_list.json;pywxdump" --add-data "${{ github.workspace }}/pywxdump/show_chat/templates/chat.html;pywxdump/show_chat/templates" --add-data "${{ github.workspace }}/pywxdump/show_chat/templates/index.html;pywxdump/show_chat/templates" --distpath=dist --name=pywxdump dist/tmp.py # pyinstaller --onefile --clean --add-data "${{ github.workspace }}/pywxdump/version_list.json;pywxdump" --add-data "${{ github.workspace }}/pywxdump/show_chat/templates/chat.html;pywxdump/show_chat/templates" --add-data "${{ github.workspace }}/pywxdump/show_chat/templates/index.html;pywxdump/show_chat/templates" --distpath=dist --name=pywxdump dist/tmp.py
- name: test - name: test
run: | run: |

View File

@ -8,3 +8,5 @@ silk-python
pyaudio pyaudio
requests requests
pillow pillow
flask
pyahocorasick