Skip to content

Add Settings screenshot to README #2

Add Settings screenshot to README

Add Settings screenshot to README #2

Workflow file for this run

name: Release
on:
push:
tags:
- 'v*'
permissions:
contents: write
jobs:
build-and-release:
runs-on: macos-15
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Select Xcode
run: sudo xcode-select -s /Applications/Xcode.app
- name: Show Xcode version
run: xcodebuild -version
- name: Extract version from tag
id: version
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
- name: Build (unsigned archive)
run: |
xcodebuild \
-project CodexBarMenuBar.xcodeproj \
-scheme CodexBarMenuBar \
-configuration Release \
-archivePath build/CodexBarMenuBar.xcarchive \
CODE_SIGN_IDENTITY="-" \
CODE_SIGNING_REQUIRED=NO \
CODE_SIGNING_ALLOWED=NO \
MARKETING_VERSION=${{ steps.version.outputs.VERSION }} \
archive
- name: Export .app from archive
run: |
mkdir -p build/export
cp -R build/CodexBarMenuBar.xcarchive/Products/Applications/CodexBarMenuBar.app build/export/
- name: Zip the .app
run: |
cd build/export
/usr/bin/ditto -c -k --keepParent CodexBarMenuBar.app ../CodexBarMenuBar-v${{ steps.version.outputs.VERSION }}.zip
- name: Create GitHub Release
uses: softprops/action-gh-release@v3
with:
name: CodexBarMenuBar v${{ steps.version.outputs.VERSION }}
generate_release_notes: true
body: |
## Compatibility
- **CodexBar CLI**: v${{ steps.version.outputs.VERSION }} (must match)
- **macOS**: 15.0+
## Installation
1. Download `CodexBarMenuBar-v${{ steps.version.outputs.VERSION }}.zip` below
2. Unzip and drag `CodexBarMenuBar.app` to `/Applications`
3. **First launch**: right-click the app → Open (Gatekeeper warning, since the app is unsigned)
## Prerequisites
Install CodexBar CLI first:
```bash
brew install --cask codexbar
```
---
## 兼容性
- **CodexBar CLI**: v${{ steps.version.outputs.VERSION }}(必须匹配)
- **macOS**: 15.0+
## 安装
1. 下载下方的 `CodexBarMenuBar-v${{ steps.version.outputs.VERSION }}.zip`
2. 解压后将 `CodexBarMenuBar.app` 拖入 `/Applications`
3. **首次启动**:右键点击 app → 打开(因未签名,会有 Gatekeeper 警告)
## 前置条件
先安装 CodexBar CLI:
```bash
brew install --cask codexbar
```
files: |
build/CodexBarMenuBar-v${{ steps.version.outputs.VERSION }}.zip