open-merou

Open Mérou, a free iOS app for the Oceanic+ underwater iPhone housing
git clone https://git.schurger.org/open-merou.git
Log | Files | Refs | README | LICENSE

upload.sh (489B)


      1 #!/bin/bash
      2 # On the build Mac: uploads build_output/OpenMerou.ipa; gives up after 5 min (altool sometimes hangs).
      3 log=/tmp/merou-upload.log
      4 fastlane ios upload > "$log" 2>&1 &
      5 for i in $(seq 1 60); do
      6   grep -q "Successfully uploaded the new binary" "$log" && { echo "UPLOADED"; exit 0; }
      7   grep -q -E '\[!\]|rror:' "$log" && { tail -5 "$log"; exit 1; }
      8   /bin/sleep 5
      9 done
     10 pkill -f "fastlane ios upload"; pkill -f "altool --upload-app"
     11 echo "UPLOAD STUCK: run make release again"
     12 exit 2