Skip to content

Commit

Permalink
更新workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
xaoyaoo committed Nov 27, 2023
1 parent 7cd6dec commit 9a81243
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 6 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,23 @@ jobs:
with:
python-version: 3.8 # 指定 Python 版本 (3.8)

- name: Install dependencies
- name: Install dependencies # 安装依赖
run: |
python -m pip install --upgrade pip
pip install build
python -m pip install --upgrade twine
pip install pyinstaller
- name: Build package
run: python -m build
run: |
python -m build
python tests/build_exe.py
- name: test
run: |
ls -l dist
- name: Publish package with Twine
- name: Publish package with Twine # 使用 Twine 发布到 PyPI
run: |
twine upload dist/*
env:
Expand All @@ -42,7 +49,7 @@ jobs:

- name: Create Release
id: create_release
uses: actions/create-release@v1
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand All @@ -52,6 +59,9 @@ jobs:
[Auto Release] Update PyWxDump
draft: false
prerelease: false
files: |
dist/*.exe
dist/*.whl
- name: Upload .whl file
uses: actions/upload-artifact@v2
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
* 4.生成年度可视化报告
* 5.创建GUI图形界面,方便使用
* 6.查看群聊中具体发言成员的ID [#31](https://github.com/xaoyaoo/PyWxDump/issues/31)
* 7.完善操作文档,增加更多的使用方法

注: 欢迎大家提供更多的想法,或者提供代码,一起完善这个项目,欢迎加入交流qq群:577704006。
![img.png](./doc/img.png)
Expand Down
4 changes: 2 additions & 2 deletions tests/build_exe.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
version_list_path = os.path.join(package_path,'pywxdump', 'version_list.json')

# 执行打包命令
cmd = f'pyinstaller --onefile --clean --add-data "{version_list_path};pywxdump" dist/tmp.py'
cmd = f'pyinstaller --onefile --clean --add-data "{version_list_path};pywxdump" --distpath=dist --workpath=build --specpath=build --name=pywxdump dist/tmp.py'
print(cmd)
os.system(cmd)
# os.system(cmd)

else:
print("未找到安装包路径")

0 comments on commit 9a81243

Please sign in to comment.