preinstall
10 lines 443 B
Raw
sha256:bd1eb24434d281fe65142038c1bf217493421f5a86880c22dff7e6037d2d4700 feat(companion): add production macOS distribution path Human minor ⚠ breaking 25 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:bd1eb24434d281fe65142038c1bf217493421f5a86880c22dff7e6037d2d4700 feat(companion): add production macOS distribution path Human minor ⚠ 25 days ago