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
3 changes: 2 additions & 1 deletion .github/workflows/mac-install-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Mac one-line installer
on:
workflow_dispatch:
push:
branches: [main]
paths:
- "docs/mac-install.sh"
- ".github/workflows/mac-install-check.yml"
Expand All @@ -10,7 +11,7 @@ jobs:
install:
strategy:
matrix:
os: [macos-14, macos-15-intel]
os: [macos-15, macos-15-intel]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -165,4 +165,11 @@ jobs:
GH_TOKEN: ${{ github.token }}
run: |
TAG=$(gh release view --repo "$GITHUB_REPOSITORY" --json tagName --jq .tagName)
# The manifest gives the Mac entry the release's version; an app with another version would offer itself
# as an update forever. Refuse to upload unless the app inside the zip has the release's version.
APP_VERSION=$(unzip -p Buddy-mac.zip Buddy.app/Contents/Info.plist | python3 -c "import plistlib,sys; print(plistlib.load(sys.stdin.buffer)['CFBundleShortVersionString'])")
if [ "$APP_VERSION" != "${TAG#v}" ]; then
echo "::error::Buddy.app is $APP_VERSION but the latest release is $TAG; set VERSION in mac/buddy_mac/core.py to ${TAG#v}"
exit 1
fi
gh release upload "$TAG" Buddy-mac.zip --clobber --repo "$GITHUB_REPOSITORY"
2 changes: 1 addition & 1 deletion mac/buddy_mac/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
from pathlib import Path

APP_NAME = "Buddy"
VERSION = "1.2.0"
VERSION = "1.3.2"

SUPPORT_DIR = Path.home() / "Library" / "Application Support" / APP_NAME
SETTINGS_PATH = SUPPORT_DIR / "settings.json"
Expand Down
2 changes: 1 addition & 1 deletion mac/tests/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ def test_island_is_on_by_default():
assert core.DEFAULTS["island"] is True


# --------------------------------------------------------------------------- languages (1.2.0)
# --------------------------------------------------------------------------- languages (1.3.2)
def test_prompt_answers_in_the_questions_language():
assert "Reply in the language of the question" in core.SYSTEM_PROMPT

Expand Down
Loading