Skip to content
Merged
Show file tree
Hide file tree
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
9 changes: 5 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ jobs:
--generate-notes

- name: Update sangdth/homebrew-tap Formula/lodo.rb
if: ${{ secrets.HOMEBREW_TAP_TOKEN != '' }}
env:
TAP_TOKEN: ${{ secrets.HOMEBREW_TAP_TOKEN }}
VERSION: ${{ steps.pkg.outputs.version }}
Expand All @@ -61,6 +60,10 @@ jobs:
SHA256: ${{ steps.pkg.outputs.sha256 }}
REPO: ${{ github.repository }}
run: |
if [ -z "${TAP_TOKEN}" ]; then
echo "HOMEBREW_TAP_TOKEN is unset: skipping the tap update"
exit 0
fi
TAP_DIR="$(mktemp -d)"
git clone "https://x-access-token:${TAP_TOKEN}@github.com/sangdth/homebrew-tap.git" "${TAP_DIR}"
mkdir -p "${TAP_DIR}/Formula"
Expand All @@ -74,6 +77,7 @@ jobs:
depends_on :macos
depends_on arch: :arm64
depends_on "dnsmasq"
depends_on "caddy"

def install
bin.install "lodo"
Expand All @@ -84,9 +88,6 @@ jobs:
<<~EOS
Run one-time system setup (or repair after an upgrade if prompted):
lodo setup

Optional HTTP/HTTPS reverse proxy support:
brew install caddy && lodo setup
EOS
end

Expand Down
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@ http://dashboard.blog.lodo -> Caddy on port 80 -> 127.0.1.1:3000
Requires macOS on Apple Silicon with Homebrew in `/opt/homebrew` and an admin account.

```sh
# 1. Install dependencies and lodo (caddy is only needed for names with a port)
brew tap sangdth/tap
brew install dnsmasq caddy lodo
# 1. Install lodo; Homebrew also installs its dnsmasq and caddy
brew install sangdth/tap/lodo

# 2. Start a project (runs one-time Mac setup and registers the project's names on first use)
cd ~/Projects/shop
Expand Down
1 change: 0 additions & 1 deletion docs/plan.md
Original file line number Diff line number Diff line change
Expand Up @@ -952,4 +952,3 @@ scrolls); `i` in the dashboard opens it too, and it scrolls in the box.
- Migrating or cleaning up localdns.
- Intel Homebrew (`/usr/local`) and Linux.
- Non-interactive `lodo add` / `lodo rm`. `lodo apply` on a hand-edited `domains.json` covers scripts for now.
- A Homebrew tap and a release workflow. `go install` until there's a second user.
Loading