Build AI Studio for macOS

Add branded startup, Ollama and MLX inference, persistent chat and document retrieval, confirmed MCP tools, and reproducible build and test scripts.
This commit is contained in:
Mark Gregory
2026-11-16 13:14:00 +00:00
parent 4196ab0594
commit 2238df4631
22 changed files with 3004 additions and 18 deletions
+33
View File
@@ -0,0 +1,33 @@
#!/bin/bash
set -euo pipefail
cd "$(dirname "$0")/.."
if [[ -n "${NOTARY_PROFILE:-}" && -z "${SIGN_IDENTITY:-}" ]]; then
echo "Notarization requires SIGN_IDENTITY." >&2
exit 2
fi
export AISTUDIO_BUILD_ROOT="${AISTUDIO_BUILD_ROOT:-/private/tmp/AIStudio-build-$(id -u)}"
destination="${1:-$AISTUDIO_BUILD_ROOT/dist}"
./Scripts/build.sh Release
stage="$(mktemp -d "$AISTUDIO_BUILD_ROOT/release.XXXXXXXX")"
trap 'rm -rf -- "$stage"' EXIT
app="$stage/AIStudio.app"
ditto "$AISTUDIO_BUILD_ROOT/Derived/Build/Products/Release/AIStudio.app" "$app"
version="$(/usr/libexec/PlistBuddy -c 'Print CFBundleShortVersionString' "$app/Contents/Info.plist")"
if [[ -n "${SIGN_IDENTITY:-}" ]]; then
codesign --force --timestamp --options runtime --sign "$SIGN_IDENTITY" "$app"
else
codesign --force --sign - "$app"
fi
codesign --verify --deep --strict "$app"
archive="AIStudio-$version-macOS-arm64.zip"
if [[ -n "${NOTARY_PROFILE:-}" ]]; then
ditto -c -k --keepParent "$app" "$stage/notarization.zip"
xcrun notarytool submit "$stage/notarization.zip" --keychain-profile "$NOTARY_PROFILE" --wait
xcrun stapler staple "$app"
xcrun stapler validate "$app"
fi
ditto -c -k --keepParent "$app" "$stage/$archive"
mkdir -p "$destination"
mv "$stage/$archive" "$destination/$archive"
(cd "$destination" && shasum -a 256 "$archive" > "$archive.sha256")
printf 'Release: %s\n' "$destination/$archive"