test publish.yml
This commit is contained in:
parent
c4484f5270
commit
06c15137b2
22
.github/workflows/publish.yml
vendored
22
.github/workflows/publish.yml
vendored
@ -37,22 +37,12 @@ jobs:
|
||||
python tests/build_exe.py
|
||||
|
||||
- name: Get package path
|
||||
run: |
|
||||
$pythonCmd = "python -c ""import site; print(site.getsitepackages()[1])"""
|
||||
$package_path = Invoke-Expression -Command $pythonCmd
|
||||
$version_list_path = "$package_path/pywxdump/version_list.json"
|
||||
|
||||
# Execute packaging command
|
||||
$cmd = "pyinstaller --onefile --clean --add-data `"$version_list_path;pywxdump`" --distpath=dist --workpath=build --specpath=build --name=pywxdump dist/tmp.py"
|
||||
Write-Host $cmd
|
||||
Invoke-Expression -Command $cmd || exit 1
|
||||
|
||||
- name: Check package path
|
||||
run: |
|
||||
if (-not $package_path) {
|
||||
Write-Error "未找到安装包路径"
|
||||
exit 1
|
||||
}
|
||||
shell: python -c "import site; print(site.getsitepackages()[1])"
|
||||
id: get_package_path
|
||||
- name: Package with PyInstaller
|
||||
shell: |
|
||||
pyinstaller --onefile --clean --add-data "{{ steps.get_package_path.outputs.stdout }}/pywxdump/version_list.json;pywxdump" --distpath=dist --workpath=build --specpath=build --name=pywxdump dist/tmp.py
|
||||
continue-on-error: true
|
||||
|
||||
- name: test
|
||||
run: |
|
||||
|
Loading…
Reference in New Issue
Block a user