mirror of
https://github.com/emendir/EndraApp.git
synced 2025-12-23 22:18:10 -05:00
PyInstaller use virtual environment
This commit is contained in:
@@ -13,6 +13,8 @@ HIDDEN_IMPORTS = ["kivy_garden", "kivy_garden.qrcode"]
|
||||
EXCLUDED_IMPORTS = ["PyQt6"]
|
||||
|
||||
|
||||
print("PYTHON", sys.executable)
|
||||
|
||||
WORK_DIR = os.path.dirname(__file__)
|
||||
# os.chdir(os.path.dirname(__file__))
|
||||
PROJ_DIR = os.path.abspath(os.path.join(WORK_DIR, "..", ".."))
|
||||
|
||||
@@ -19,6 +19,7 @@ echo "$PROJ_DIR"
|
||||
|
||||
PYINST_SPEC=$SCRIPT_DIR/$PYINST_SPEC_NAME
|
||||
PYTHON="${PYTHON:-python3}"
|
||||
echo $PYTHON
|
||||
|
||||
if ! command -v "$PYTHON" >/dev/null 2>&1; then
|
||||
echo "Error: '$PYTHON' command not found. Set the environment variable `PYTHON` to you python command."
|
||||
@@ -35,8 +36,10 @@ cp -r $PROJ_DIR/packaging/share $tempdir/packaging
|
||||
|
||||
cd $tempdir
|
||||
ls -la
|
||||
|
||||
IPFS_TK_MODE=EMBEDDED WALYTIS_BETA_API_TYPE=WALYTIS_BETA_DIRECT_API $PYTHON packaging/pyinstaller/build_pyinstaller.py
|
||||
$PYTHON -m virtualenv .venv
|
||||
source .venv/bin/activate
|
||||
pip install -r requirements.txt -r requirements-dev.txt
|
||||
IPFS_TK_MODE=EMBEDDED WALYTIS_BETA_API_TYPE=WALYTIS_BETA_DIRECT_API python packaging/pyinstaller/build_pyinstaller.py
|
||||
|
||||
echo $tempdir/dist
|
||||
cp -r $tempdir/dist/* $PROJ_DIR/dist/
|
||||
|
||||
@@ -7,6 +7,7 @@ emtest
|
||||
pyinstaller
|
||||
pyperclip
|
||||
toml
|
||||
virtualenv
|
||||
|
||||
# MacOS
|
||||
docopt
|
||||
|
||||
Reference in New Issue
Block a user