publish test

This commit is contained in:
xaoyo 2023-11-28 19:01:49 +08:00
parent a08403cbff
commit 8cfd0bbcb9
2 changed files with 6 additions and 3 deletions

View File

@ -46,7 +46,7 @@ jobs:
ls -l dist ls -l dist
ls -l "${{ github.workspace }}" ls -l "${{ github.workspace }}"
cd dist cd dist
./pywxdump.exe -h pywxdump.exe
# - name: Publish package with Twine # 使用 Twine 发布到 PyPI # - name: Publish package with Twine # 使用 Twine 发布到 PyPI
# run: | # run: |

View File

@ -8,7 +8,10 @@
import site import site
import os import os
code = """from pywxdump.command import console_run;console_run()""" code = """
from pywxdump.command import console_run
console_run()
"""
spec_content = ''' spec_content = '''
# -*- mode: python ; coding: utf-8 -*- # -*- mode: python ; coding: utf-8 -*-
@ -60,7 +63,7 @@ coll = COLLECT(exe,
upx_exclude=[], upx_exclude=[],
name='pywxdump') name='pywxdump')
''' '''
# 创建文件夹 # 创建文件夹
os.makedirs("dist", exist_ok=True) os.makedirs("dist", exist_ok=True)
# 将代码写入文件 # 将代码写入文件