diff --git a/scripts/package.sh b/scripts/package-zip.sh similarity index 51% rename from scripts/package.sh rename to scripts/package-zip.sh index 7dba3e5d..215f42b3 100755 --- a/scripts/package.sh +++ b/scripts/package-zip.sh @@ -2,32 +2,6 @@ set -e -# Clean -rm -r dist/ || true -mkdir dist -mkdir dist/activitywatch - -PYINSTALL_TARGETS=$(find . -maxdepth 2 | egrep 'aw-.*/.*\.spec') - -echo "PyInstaller .spec files found" -for target in $PYINSTALL_TARGETS; do - echo " - $target"; -done - -for target in $PYINSTALL_TARGETS; do - target_dir=$(dirname $target) - - echo - echo "-------------------------------------" - echo "Building $target_dir" - pyinstaller $target --clean - - # Putting it all in one folder - cp -r dist/$target_dir/* dist/activitywatch - rm -r dist/$target_dir -done - -echo echo "-------------------------------------" echo "Zipping executables..." cd dist; @@ -35,7 +9,8 @@ platform=$(uname | tr '[:upper:]' '[:lower:]') if [[ "$platform" == "darwin" ]]; then platform="macos"; elif [[ $platform == "cygwin"* ]]; then - platform="windows" + echo "ERROR: cygwin is not a valid platform" + exit 1 fi if [[ $platform == "windows"* ]]; then