Add more info prints to mac os packaging scripts

This commit is contained in:
DarkPhoenix
2020-02-03 13:37:27 +03:00
parent 98a8332cfa
commit fc9337df67
2 changed files with 9 additions and 6 deletions

View File

@@ -1,11 +1,14 @@
#!/usr/bin/env bash
echo "Pyfa version (ENV):"
echo "${PYFA_VERSION}"
echo "Pyfa version (YAML):"
cat version.yml
echo "Building distributive..."
python3 -m PyInstaller -y --clean --windowed dist_assets/mac/pyfa.spec
echo "Compressing distributive..."
cd dist
zip -r "pyfa-$PYFA_VERSION-mac.zip" pyfa.app
echo "Uploading distributive to transfer.sh..."
curl --connect-timeout 30 --max-time 300 --upload-file "pyfa-$PYFA_VERSION-mac.zip" https://transfer.sh/ || echo 'upload to transfer.sh failed'
echo -e "\n"
md5 -r "pyfa-$PYFA_VERSION-mac.zip"

View File

@@ -1,9 +1,9 @@
#!/usr/bin/env bash
echo "Checking python version"
echo "Python version:"
python3 --version
echo "Upgrading pip"
echo "Upgrading pip..."
python3 -m pip install --upgrade pip
echo "Installing app requirements"
echo "Installing app requirements..."
python3 -m pip install -r requirements.txt
echo "Installing packaging tools"
echo "Installing packaging tools..."
python3 -m pip install PyInstaller==3.6