preinstall
10 lines 443 B
Raw
sha256:c88bf098b52c796e46edc39ec71f9f0627d305439b73972d3fada73cefde0da9 fix: put release binaries before lipo architecture checks Human minor ⚠ breaking 24 days ago
1 #!/bin/bash
2 set -euo pipefail
3
4 installed_plist="/Applications/Knowtation.app/Contents/Info.plist"
5 if [[ ! -f "$installed_plist" ]]; then exit 0; fi
6 installed_build="$(/usr/libexec/PlistBuddy -c 'Print :CFBundleVersion' "$installed_plist" 2>/dev/null || true)"
7 if [[ "$installed_build" =~ ^[0-9]+$ ]] && (( installed_build > 100 )); then
8 echo "Knowtation build $installed_build is newer than build 100; rollback is rejected." >&2
9 exit 1
10 fi
File History 1 commit
sha256:c88bf098b52c796e46edc39ec71f9f0627d305439b73972d3fada73cefde0da9 fix: put release binaries before lipo architecture checks Human minor ⚠ 24 days ago