Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion apps/penpal/justfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@ default: dev

export PATH := env_var_or_default("CARGO_HOME", env_var("HOME") + "/.cargo") + "/bin:" + env_var("PATH")

# Check that Block's internal network is reachable (requires Warp to be connected)
_check-warp:
#!/usr/bin/env bash
if ! curl -sf --max-time 5 --head https://global.block-artifacts.com -o /dev/null 2>/dev/null; then
echo "Error: Block's internal network is unreachable." >&2
echo "Turn on Warp before running this command." >&2
exit 1
fi
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I asked Claude to do this but looking at the PR I'm realizing builderbot is one of our OSS projects, so probably not appropriate. Not sure what to do if anything.


# Ensure required tools are installed
ensure-deps:
#!/usr/bin/env bash
Expand Down Expand Up @@ -40,7 +49,7 @@ build-go: ensure-deps
./scripts/build-go.sh

# Install Penpal: build dev-branded desktop app and copy to /Applications
install: ensure-deps build-go
install: _check-warp ensure-deps build-go
#!/usr/bin/env bash
set -euo pipefail

Expand Down