From 8cfd0bbcb9783d4d563fea379a4fc81430cf7f04 Mon Sep 17 00:00:00 2001 From: xaoyo Date: Tue, 28 Nov 2023 19:01:49 +0800 Subject: [PATCH] publish test --- .github/workflows/publish.yml | 2 +- tests/build_exe.py | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 8f0f14a..739fb18 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -46,7 +46,7 @@ jobs: ls -l dist ls -l "${{ github.workspace }}" cd dist - ./pywxdump.exe -h + pywxdump.exe # - name: Publish package with Twine # 使用 Twine 发布到 PyPI # run: | diff --git a/tests/build_exe.py b/tests/build_exe.py index 6995c59..614f4d0 100644 --- a/tests/build_exe.py +++ b/tests/build_exe.py @@ -8,7 +8,10 @@ import site import os -code = """from pywxdump.command import console_run;console_run()""" +code = """ +from pywxdump.command import console_run +console_run() +""" spec_content = ''' # -*- mode: python ; coding: utf-8 -*- @@ -60,7 +63,7 @@ coll = COLLECT(exe, upx_exclude=[], name='pywxdump') - ''' +''' # 创建文件夹 os.makedirs("dist", exist_ok=True) # 将代码写入文件