一键导入
macos-release-build
Use when building, signing, notarizing, validating, publishing, or tap-rendering riela macOS Homebrew Cask `.dmg` artifacts.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when building, signing, notarizing, validating, publishing, or tap-rendering riela macOS Homebrew Cask `.dmg` artifacts.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when running or documenting the codex-design-and-implement-review-loop for Riela issue-resolution work packages, including accepted design, implementation plan, implementation, review, documentation refresh, verification, and final commit handoff.
Verify RielaApp macOS UI changes through the current debug executable, screenshots, AppKit layout tests, and stale-bundle checks. Use when reviewing, fixing, or visually validating RielaApp windows such as Instances, workflow viewer, prompts, profile selection, Settings-style lists, iPhone-like flows, or any UI spacing/alignment issue.
Create or improve deterministic Riela scenario tests that cover package creation, validation, packing, CLI/package workflow use, RielaApp import/readiness/enablement behavior, workflow execution monitoring, and adversarial Riela-based assessment.
Improve Riela and RielaApp usability through realistic user workflows. Use when Codex is asked to improve, redesign, harden, or review Riela/RielaApp features, specs, package flows, profile switching, workflow/package import, CLI help, onboarding, or any behavior where user friction should be found by operating the product rather than only reading code.
Verify Riela chat examples and live chat memory regressions through RielaApp, especially Telegram, Discord, Matrix, persona trio chats, image attachment prompts, raw-log/daily-summary memory examples, event-source receipts, and chat reply visibility checks.
Use when Codex is asked to implement, refactor, review, or maintain Swift code in SwiftPM, Xcode, iOS, macOS, watchOS, tvOS, or server-side Swift projects. This skill enforces SwiftLint execution, splits Swift files over 1000 lines into meaningful responsibility-based files, and guides maintainable Swift design using DRY, single responsibility, SOLID, established design patterns, tests, and project-local conventions.
| name | macos-release-build |
| description | Use when building, signing, notarizing, validating, publishing, or tap-rendering riela macOS Homebrew Cask `.dmg` artifacts. |
This skill covers the repository-specific workflow for producing macOS
Homebrew Cask .dmg artifacts that contain RielaApp.app and the riela
CLI, validating them locally, and preparing them for Apple
signing/notarization and GitHub release publication.
Apply this skill when:
.dmg for the riela CaskCasks/riela.rb in tacogips/homebrew-tapUse the formula packaging flow for CLI-only brew install riela tarball
releases on macOS. Linux CLI tarballs may be published to GitHub releases, but
they are not rendered into the Homebrew tap.
The macOS Cask is the RielaApp.app + riela CLI install path.
scripts/build-homebrew-release.sh builds CLI-only riela tarballs under
dist/homebrew/. The Homebrew Formula uses the macOS archives only.scripts/build-homebrew-cask-release.sh builds signed and notarized Cask
DMGs under dist/homebrew-cask/; each DMG contains RielaApp.app and the
riela CLI.scripts/render-homebrew-cask.sh renders Casks/riela.rb from archive
checksums.scripts/release-homebrew-cask-local.sh builds, notarizes, uploads, and
renders the sibling tap cask for a pushed v<version> tag.Taskfile.yml exposes build:homebrew-cask, homebrew:cask,
homebrew:tap-cask, and release:homebrew-cask-local.The local release path consumes these secret names:
APPLE_SIGNING_IDENTITYAPPLE_IDAPPLE_PASSWORDAPPLE_TEAM_IDMeaning:
APPLE_SIGNING_IDENTITY is the Developer ID Application identity used to
sign RielaApp.app and the riela executable.APPLE_ID, APPLE_PASSWORD, and APPLE_TEAM_ID support notarization.Keep certificate material and password values in the local keychain and password manager. Do not commit Apple credentials.
Before tagging or publishing, verify the release version is consistent across the package metadata and built CLI:
version="$(tr -d '[:space:]' < VERSION)"
cli_version="$(nix develop -c bash -lc 'swift run riela --version' | tail -n 1 | tr -d '[:space:]')"
test "$cli_version" = "$version"
The CLI output must exactly match VERSION. In this repository the CLI version
is exposed through rielaSwiftMigrationVersion, so update that constant when
preparing a new release.
task build:homebrew-cask -- --dry-run darwin-arm64 darwin-x64
The dry-run plan must show both a staged signed app and a staged signed binary:
staged signed app: .../RielaApp.app
staged signed binary: .../riela
kinko exec --env APPLE_SIGNING_IDENTITY,APPLE_ID,APPLE_PASSWORD,APPLE_TEAM_ID -- \
task build:homebrew-cask -- darwin-arm64 darwin-x64
ls -lh dist/homebrew-cask/riela-<version>-darwin-arm64.dmg
ls -lh dist/homebrew-cask/riela-<version>-darwin-x64.dmg
/Applications/Xcode.app/Contents/Developer/usr/bin/stapler validate dist/homebrew-cask/riela-<version>-darwin-arm64.dmg
/Applications/Xcode.app/Contents/Developer/usr/bin/stapler validate dist/homebrew-cask/riela-<version>-darwin-x64.dmg
spctl --assess --type open --context context:primary-signature --verbose=4 dist/homebrew-cask/riela-<version>-darwin-arm64.dmg
spctl --assess --type open --context context:primary-signature --verbose=4 dist/homebrew-cask/riela-<version>-darwin-x64.dmg
Formula release (brew install riela) and Cask release
(brew install --cask riela) are separate:
../homebrew-tap/Formula/riela.rb; no Apple Developer credentials,
signing, notarization, or kinko unlock is required.RielaApp.app plus the riela CLI. It must be signed,
notarized, stapled, and therefore requires kinko to expose the Apple
credential environment.For a tagged release:
kinko exec --env APPLE_SIGNING_IDENTITY,APPLE_ID,APPLE_PASSWORD,APPLE_TEAM_ID -- \
task release:homebrew-cask-local -- v<version>
The wrapper checks the local and remote tag, verifies VERSION, uploads the
.dmg assets to tacogips/riela, and renders
../homebrew-tap/Casks/riela.rb.
After reviewing the rendered tap cask:
cd ../homebrew-tap
git add Casks/riela.rb README.md
git commit -m "chore: add riela cask"
git push origin main
Users can then install with:
brew tap tacogips/tap
brew install --cask riela
That Cask installs RielaApp.app and links riela. Users who want only the
command line tool on macOS should install the formula instead:
brew tap tacogips/tap
brew install riela
Linux users install CLI-only GitHub release tarballs directly; do not require Linux Formula assets for the macOS tap update.
spctl --type open acceptance for the DMG.RielaApp.app and riela; do not regress it
to a CLI-only Cask.RielaApp.app or Linux
archive branches to formula archives.