Skip to content

Commit c77a307

Browse files
GordonBeemingclaudegitbutler-client
authored
feat: Expose CLI via Homebrew cask (#12)
feat: Embed CLI in app bundle and expose via Homebrew cask - CLI binary now embedded as insomnia-cli inside Insomnia.app/Contents/MacOS/ - Cask binary stanza symlinks it to 'insomnia' in Homebrew bin - Fixed skill file structure (directory + SKILL.md) Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Co-authored-by: GitButler <gitbutler@gitbutler.com>
1 parent cb03519 commit c77a307

3 files changed

Lines changed: 6 additions & 0 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
name: create-release
23
description: Create a new draft release for Insomnia. Use when the user says "create a release", "new release", "cut a release", or "ship it".
34
---
45

.github/workflows/build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,7 @@ jobs:
292292
depends_on macos: ">= :sonoma"
293293
294294
app "Insomnia.app"
295+
binary "#{appdir}/Insomnia.app/Contents/MacOS/insomnia-cli", target: "insomnia"
295296
296297
zap trash: [
297298
"~/Library/Application Support/Insomnia",

Scripts/build-release.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,10 @@ mkdir -p "${RESOURCES_DIR}"
141141
# Copy the GUI executable into the MacOS directory
142142
cp "${GUI_BIN_PATH}" "${MACOS_DIR}/${GUI_TARGET}"
143143

144+
# Embed the CLI binary inside the app bundle so Homebrew can symlink it
145+
cp "${DIST_DIR}/insomnia" "${MACOS_DIR}/insomnia-cli"
146+
echo "✅ CLI binary embedded → ${MACOS_DIR}/insomnia-cli"
147+
144148
# Copy the app icon into the Resources directory
145149
if [[ -f "${PROJECT_ROOT}/Resources/AppIcon.icns" ]]; then
146150
cp "${PROJECT_ROOT}/Resources/AppIcon.icns" "${RESOURCES_DIR}/AppIcon.icns"

0 commit comments

Comments
 (0)