将文件打包
This commit is contained in:
parent
160d4a09bb
commit
b2db6cfb5e
24
.github/workflows/publish.yml
vendored
24
.github/workflows/publish.yml
vendored
@ -33,15 +33,17 @@ jobs:
|
|||||||
pip install pyinstaller
|
pip install pyinstaller
|
||||||
pip install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
|
|
||||||
- name: Set up Node.js
|
- name: Set up Node.js # 设置 Node.js 环境
|
||||||
uses: actions/setup-node@v2
|
uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: 20
|
node-version: 20
|
||||||
|
|
||||||
- name: Build Web UI
|
- name: Build Web UI # 构建 Web UI
|
||||||
run: |
|
run: |
|
||||||
cd ..
|
cd ..
|
||||||
git clone https://github.com/xaoyaoo/wxdump_web.git
|
git clone https://github.com/xaoyaoo/wxdump_web.git
|
||||||
|
Compress-Archive -Path wxdump_web -DestinationPath wxdump_web.zip
|
||||||
|
Compress-Archive -Path PyWxDump -DestinationPath PyWxDump.zip
|
||||||
cd wxdump_web
|
cd wxdump_web
|
||||||
npm install
|
npm install
|
||||||
npm run build
|
npm run build
|
||||||
@ -54,12 +56,12 @@ jobs:
|
|||||||
ls -l PyWxDump/pywxdump/ui/web
|
ls -l PyWxDump/pywxdump/ui/web
|
||||||
cd PyWxDump
|
cd PyWxDump
|
||||||
|
|
||||||
- name: Build package
|
- name: Build package # 构建包
|
||||||
run: |
|
run: |
|
||||||
python -m build
|
python -m build
|
||||||
pip install -U .
|
pip install -U .
|
||||||
|
|
||||||
- name: Generate File pywxdump.spec
|
- name: Generate File pywxdump.spec # 生成 pywxdump.spec 文件
|
||||||
run: |
|
run: |
|
||||||
python tests/build_exe.py
|
python tests/build_exe.py
|
||||||
cat dist/pywxdump.spec
|
cat dist/pywxdump.spec
|
||||||
@ -73,6 +75,14 @@ jobs:
|
|||||||
ls -l dist
|
ls -l dist
|
||||||
ls -l "${{ github.workspace }}"
|
ls -l "${{ github.workspace }}"
|
||||||
|
|
||||||
|
- name: Zip Executable
|
||||||
|
run: |
|
||||||
|
cd ..
|
||||||
|
ls -l
|
||||||
|
Compress-Archive -Path PyWxDump/dist/*.exe,PyWxDump/dist/*.whl -DestinationPath exe_whl.zip
|
||||||
|
Compress-Archive -Path PyWxDump.zip,wxdump_web.zip -DestinationPath Source.zip
|
||||||
|
ls -l
|
||||||
|
|
||||||
- name: Publish package with Twine # 使用 Twine 发布到 PyPI
|
- name: Publish package with Twine # 使用 Twine 发布到 PyPI
|
||||||
run: |
|
run: |
|
||||||
twine upload dist/*.whl dist/*.tar.gz
|
twine upload dist/*.whl dist/*.tar.gz
|
||||||
@ -93,5 +103,7 @@ jobs:
|
|||||||
draft: false
|
draft: false
|
||||||
prerelease: false
|
prerelease: false
|
||||||
files: |
|
files: |
|
||||||
dist/*.exe
|
PyWxDump/dist/*.exe
|
||||||
dist/*.whl
|
PyWxDump/dist/*.whl
|
||||||
|
exe_whl.zip
|
||||||
|
Source.zip
|
Loading…
Reference in New Issue
Block a user