diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 91f49c3..56a5a4b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -36,14 +36,20 @@ jobs: python -m build python tests/build_exe.py - - name: test1 - run: | - ls -l "${{ github.workspace }}" - ls -l "${{ github.workspace }}/pywxdump/show_chat/templates" + - name: Create Executable + uses: sayyid5416/pyinstaller@v1 + with: + 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 - 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 +# - name: Build Executable +# 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 - name: test run: | diff --git a/requirements.txt b/requirements.txt index 6c90d80..356c7da 100644 --- a/requirements.txt +++ b/requirements.txt @@ -7,4 +7,6 @@ pymem silk-python pyaudio requests -pillow \ No newline at end of file +pillow +flask +pyahocorasick \ No newline at end of file