feat: Adds readme and license files
All checks were successful
CI / Run Tests (push) Successful in 2m25s

This commit is contained in:
2024-12-18 14:43:51 -05:00
parent 1e72dbcfc2
commit 2944a1293f
4 changed files with 198 additions and 2 deletions

View File

@@ -6,6 +6,8 @@ tap_url := "https://git.housh.dev/michael/homebrew-formula"
tap := "michael/formula"
formula := "hpa"
release_base_url := "https://git.housh.dev/michael/swift-hpa/archive"
# Build and bottle homebrew formula.
bottle:
@brew uninstall {{formula}} || true
@@ -50,6 +52,10 @@ test-docker *ARGS: (build-docker-test)
{{docker_image_name}}:test \
swift test {{ARGS}}
# Remove bottles
remove-bottles:
rm -rf *.gz
# Run the application.
run *ARGS:
swift run hpa {{ARGS}}
@@ -67,3 +73,12 @@ update-version:
--allow-writing-to-package-directory \
update-version \
hpa
# Get the sha256 sum of the release and copy to clipboard.
get-release-sha prefix="": (build "release")
version=$(.build/release/hpa --version) && \
url="{{release_base_url}}/{{prefix}}${version}.tar.gz" && \
sha=$(curl "$url" | shasum -a 256) && \
stripped="${sha% *}" && \
echo "$stripped" | pbcopy && \
echo "Copied sha to clipboard: $stripped"