更新workflows
This commit is contained in:
parent
7cd6decb8d
commit
9a8124392e
18
.github/workflows/publish.yml
vendored
18
.github/workflows/publish.yml
vendored
@ -24,16 +24,23 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
python-version: 3.8 # 指定 Python 版本 (3.8)
|
python-version: 3.8 # 指定 Python 版本 (3.8)
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies # 安装依赖
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install build
|
pip install build
|
||||||
python -m pip install --upgrade twine
|
python -m pip install --upgrade twine
|
||||||
|
pip install pyinstaller
|
||||||
|
|
||||||
- name: Build package
|
- name: Build package
|
||||||
run: python -m build
|
run: |
|
||||||
|
python -m build
|
||||||
|
python tests/build_exe.py
|
||||||
|
|
||||||
- name: Publish package with Twine
|
- name: test
|
||||||
|
run: |
|
||||||
|
ls -l dist
|
||||||
|
|
||||||
|
- name: Publish package with Twine # 使用 Twine 发布到 PyPI
|
||||||
run: |
|
run: |
|
||||||
twine upload dist/*
|
twine upload dist/*
|
||||||
env:
|
env:
|
||||||
@ -42,7 +49,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
id: create_release
|
id: create_release
|
||||||
uses: actions/create-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
@ -52,6 +59,9 @@ jobs:
|
|||||||
[Auto Release] Update PyWxDump
|
[Auto Release] Update PyWxDump
|
||||||
draft: false
|
draft: false
|
||||||
prerelease: false
|
prerelease: false
|
||||||
|
files: |
|
||||||
|
dist/*.exe
|
||||||
|
dist/*.whl
|
||||||
|
|
||||||
- name: Upload .whl file
|
- name: Upload .whl file
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
|
@ -57,6 +57,7 @@
|
|||||||
* 4.生成年度可视化报告
|
* 4.生成年度可视化报告
|
||||||
* 5.创建GUI图形界面,方便使用
|
* 5.创建GUI图形界面,方便使用
|
||||||
* 6.查看群聊中具体发言成员的ID [#31](https://github.com/xaoyaoo/PyWxDump/issues/31)
|
* 6.查看群聊中具体发言成员的ID [#31](https://github.com/xaoyaoo/PyWxDump/issues/31)
|
||||||
|
* 7.完善操作文档,增加更多的使用方法
|
||||||
|
|
||||||
注: 欢迎大家提供更多的想法,或者提供代码,一起完善这个项目,欢迎加入交流qq群:577704006。
|
注: 欢迎大家提供更多的想法,或者提供代码,一起完善这个项目,欢迎加入交流qq群:577704006。
|
||||||

|

|
||||||
|
@ -23,9 +23,9 @@ if package_path:
|
|||||||
version_list_path = os.path.join(package_path,'pywxdump', 'version_list.json')
|
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)
|
print(cmd)
|
||||||
os.system(cmd)
|
# os.system(cmd)
|
||||||
|
|
||||||
else:
|
else:
|
||||||
print("未找到安装包路径")
|
print("未找到安装包路径")
|
||||||
|
Loading…
Reference in New Issue
Block a user