git.iko.soy/parseable-macos
on master help sign in
Add Homebrew cask update to CI and install instructions to README
a5079e2iko
.github/workflows/build.yml+34
@@ -164,6 +164,40 @@ jobs:
164 env:
164 env:
165 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
165 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
166
166
167+ - name: Update Homebrew cask
168+ env:
169+ HOMEBREW_TAP_TOKEN: ${{ secrets.HOMEBREW_TAP_TOKEN }}
170+ run: |
171+ SHA_ARM64=$(shasum -a 256 artifacts/ParseableViewer-arm64/ParseableViewer-arm64.zip | awk '{print $1}')
172+ SHA_X86_64=$(shasum -a 256 artifacts/ParseableViewer-x86_64/ParseableViewer-x86_64.zip | awk '{print $1}')
173+ SHORT_SHA="${GITHUB_SHA::7}"
174+
175+ cat > /tmp/parseable-viewer.rb << CASK
176+ cask "parseable-viewer" do
177+ arch arm: "arm64", intel: "x86_64"
178+
179+ version "$SHORT_SHA"
180+ sha256 arm: "$SHA_ARM64", intel: "$SHA_X86_64"
181+
182+ url "https://github.com/ilyakooo0/parseable-macos/releases/download/latest/ParseableViewer-#{arch}.zip"
183+ name "Parseable Viewer"
184+ desc "A macOS client for Parseable"
185+ homepage "https://github.com/ilyakooo0/parseable-macos"
186+
187+ app "Parseable Viewer.app"
188+ end
189+ CASK
190+
191+ # Push updated cask to homebrew-tap
192+ cd "$(mktemp -d)"
193+ git clone "https://x-access-token:${HOMEBREW_TAP_TOKEN}@github.com/ilyakooo0/homebrew-tap.git" .
194+ cp /tmp/parseable-viewer.rb Casks/parseable-viewer.rb
195+ git config user.name "github-actions[bot]"
196+ git config user.email "github-actions[bot]@users.noreply.github.com"
197+ git add Casks/parseable-viewer.rb
198+ git commit -m "Update parseable-viewer to ${SHORT_SHA}"
199+ git push
200+
167 release:
201 release:
168 needs: create-universal
202 needs: create-universal
169 runs-on: macos-15
203 runs-on: macos-15
README.md+7−1
@@ -15,13 +15,19 @@ Browse log streams, run SQL queries, tail logs in real time, and inspect server
15- **Alerts & Users** — View configured alert rules and user accounts on the connected server
15- **Alerts & Users** — View configured alert rules and user accounts on the connected server
16- **Server Info** — Health status, version, deployment mode, storage backend, and update availability at a glance
16- **Server Info** — Health status, version, deployment mode, storage backend, and update availability at a glance
17
17
18+## Install
19+
20+```bash
21+brew install ilyakooo0/tap/parseable-viewer
22+```
23+
18## Requirements
24## Requirements
19
25
20- macOS 14.0+ (Sonoma)
26- macOS 14.0+ (Sonoma)
21- Xcode 16+
27- Xcode 16+
22- [XcodeGen](https://github.com/yonaskolb/XcodeGen)
28- [XcodeGen](https://github.com/yonaskolb/XcodeGen)
23
29
24−## Build
30+## Build from source
25
31
26```bash
32```bash
27# Install XcodeGen (one-time)
33# Install XcodeGen (one-time)