test publish.yml
This commit is contained in:
parent
f5004b4876
commit
7c74ed6b4a
16
.github/workflows/publish.yml
vendored
16
.github/workflows/publish.yml
vendored
@ -35,6 +35,22 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
python -m build
|
python -m build
|
||||||
python tests/build_exe.py
|
python tests/build_exe.py
|
||||||
|
- name: Get package path
|
||||||
|
run: |
|
||||||
|
package_path=$(python -c "import site; print(site.getsitepackages()[1])")
|
||||||
|
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"
|
||||||
|
echo $cmd
|
||||||
|
eval $cmd || exit 1
|
||||||
|
|
||||||
|
- name: Check package path
|
||||||
|
run: |
|
||||||
|
if [ -z "$package_path" ]; then
|
||||||
|
echo "未找到安装包路径"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
- name: test
|
- name: test
|
||||||
run: |
|
run: |
|
||||||
|
Loading…
Reference in New Issue
Block a user