new features

This commit is contained in:
Mark Gregory
2026-11-18 13:55:47 +00:00
parent 17bcf178a9
commit a07ddf4d6d
29 changed files with 3457 additions and 306 deletions
+6 -4
View File
@@ -5,19 +5,21 @@ 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}"
source Scripts/build-paths.sh
destination="${1:-$base/dist}"
./Scripts/build.sh Release --no-launch
stage="$(mktemp -d "$AISTUDIO_BUILD_ROOT/release.XXXXXXXX")"
stage="$(mktemp -d "$base/release.XXXXXXXX")"
trap 'rm -rf -- "$stage"' EXIT
app="$stage/AIStudio.app"
ditto "$AISTUDIO_BUILD_ROOT/Derived/Build/Products/Release/AIStudio.app" "$app"
ditto "$derived/Build/Products/Release/AIStudio.app" "$app"
if [[ "$(xcrun lipo -archs "$app/Contents/MacOS/AIStudio")" != "arm64" ]]; then
echo "Expected an arm64-only release executable." >&2
exit 1
fi
version="$(/usr/libexec/PlistBuddy -c 'Print CFBundleShortVersionString' "$app/Contents/Info.plist")"
if [[ -n "${SIGN_IDENTITY:-}" ]]; then
# The hardened app and its embedded framework must share a signing team.
codesign --force --timestamp --options runtime --sign "$SIGN_IDENTITY" "$app/Contents/Frameworks/llama.framework"
codesign --force --timestamp --options runtime --sign "$SIGN_IDENTITY" "$app"
else
codesign --force --sign - "$app"