feat: Adds readme and license files
All checks were successful
CI / Run Tests (push) Successful in 2m25s
All checks were successful
CI / Run Tests (push) Successful in 2m25s
This commit is contained in:
15
justfile
15
justfile
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user