12 lines
347 B
Bash
12 lines
347 B
Bash
#!/bin/sh
|
|
set -eu
|
|
|
|
cd "$(dirname "$0")"
|
|
python3 -m venv .build-venv
|
|
. .build-venv/bin/activate
|
|
python -m pip install --requirement requirements-build.txt
|
|
PYTHONPATH=src python -m unittest discover -s tests -v
|
|
python -m PyInstaller --noconfirm --clean --onefile --windowed \
|
|
--name "核桃派镜像配置编辑器" \
|
|
--paths src editor_main.py
|