Files
ai_studio/Docs/RELEASE.md
T
2026-11-18 13:55:47 +00:00

36 lines
2.5 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Release AI Studio
## Local package
Run `./Scripts/test.sh`, then `./Scripts/release.sh` from the project directory. The release script builds the arm64 Release configuration, checks the app's code signature, and creates `AIStudio-<version>-macOS-arm64.zip` in the temporary build directory’s `dist` folder with a SHA-256 checksum alongside it. Pass an output directory as the first argument to override `dist`. The default package is ad-hoc signed for local verification.
The scripts keep build products, Swift package checkouts and test results under the OS temporary directory. Set `AISTUDIO_BUILD_ROOT` to reuse a specific temporary build directory across runs. The scripts keep a separate compiled build directory for each bundled llama.cpp dependency to prevent Xcode from reusing older framework modules. If Xcode itself reports a stale framework module after updating llama.cpp, use **Product → Clean Build Folder** in Xcode. Increment `MARKETING_VERSION` and `CURRENT_PROJECT_VERSION` in the app target’s Debug and Release settings for each completed change. Verify the values in the built app and include both in the completion message.
## Developer ID distribution
Install a Developer ID Application certificate and store credentials for Apple's notary service using `xcrun notarytool store-credentials`. Use their Keychain profile with the release script.
```sh
SIGN_IDENTITY='Developer ID Application: Example (TEAMID)' \
NOTARY_PROFILE='example-notary-profile' \
./Scripts/release.sh
```
The script signs with the hardened runtime and a timestamp, submits to the notary service, staples and validates the ticket, and produces the final ZIP and checksum. Verify the files before distribution.
```sh
cd "/path/to/release-output"
shasum -a 256 -c AIStudio-1.1.0-macOS-arm64.zip.sha256
```
Extract the ZIP on a clean Apple silicon Mac. For a notarized build, verify the extracted app with `xcrun stapler validate AIStudio.app` and launch it through Finder. Smoke-test the Settings window, local and remote Ollama, MLX generation, stopping a stream, and chat persistence after relaunch.
## Remote Ollama smoke test
Set `TEST_RUNNER_AISTUDIO_TEST_OLLAMA_URL` to the HTTPS gateway and
`TEST_RUNNER_AISTUDIO_TEST_OLLAMA_MODEL` to a preinstalled model. For a protected
gateway, supply `TEST_RUNNER_AISTUDIO_TEST_OLLAMA_TOKEN` through your shell or
CI secret store. Run `./Scripts/test.sh`. The live check lists and inspects the model
and streams a short reply. Model pull and deletion are exercised against a
disposable local fixture.