A macOS CLI tool that exports original photos and videos from the macOS Photos library using PhotoKit.
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add Homebrew formula update script

+38
+38
scripts/update-homebrew.sh
··· 1 + #!/bin/bash 2 + # Update the Homebrew formula after a new release. 3 + # Usage: ./scripts/update-homebrew.sh 0.1.0 4 + 5 + set -euo pipefail 6 + 7 + VERSION="${1:?Usage: $0 <version>}" 8 + REPO="tijs/ladder" 9 + TAP_REPO="tijs/homebrew-tap" 10 + FORMULA="Formula/ladder.rb" 11 + 12 + echo "Fetching checksum for v${VERSION}..." 13 + 14 + ARM_URL="https://github.com/${REPO}/releases/download/v${VERSION}/ladder-${VERSION}-aarch64-apple-darwin.tar.gz" 15 + ARM_SHA=$(curl -sL "$ARM_URL" | shasum -a 256 | cut -d' ' -f1) 16 + 17 + echo "ARM64 SHA256: ${ARM_SHA}" 18 + 19 + TMPDIR=$(mktemp -d) 20 + gh repo clone "$TAP_REPO" "$TMPDIR" 21 + 22 + cd "$TMPDIR" 23 + 24 + sed -i '' "s/version \".*\"/version \"${VERSION}\"/" "$FORMULA" 25 + sed -i '' "s/sha256 \".*\"/sha256 \"${ARM_SHA}\"/" "$FORMULA" 26 + 27 + echo "" 28 + echo "Updated formula:" 29 + cat "$FORMULA" 30 + echo "" 31 + 32 + git add "$FORMULA" 33 + git commit -m "ladder ${VERSION}" 34 + git push origin main 35 + 36 + rm -rf "$TMPDIR" 37 + 38 + echo "Done. Homebrew formula updated to v${VERSION}."