diff --git a/scripts/package-osx.sh b/scripts/package-osx.sh index 14fa02045..0ad951180 100644 --- a/scripts/package-osx.sh +++ b/scripts/package-osx.sh @@ -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" diff --git a/scripts/setup-osx.sh b/scripts/setup-osx.sh index d7e322aee..d3a2d1966 100644 --- a/scripts/setup-osx.sh +++ b/scripts/setup-osx.sh @@ -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