- Added native confirmation sheets in the Mac client.

Manual content actions now confirm clearly:
Draft shows “Draft Saved”
Publish shows “Published”
Update shows “Updated”
Delete first asks “Delete Post/Page?” and then shows “Deleted” after the 
API succeeds
Autosave stays quiet so it does not spam popups.
Updated:
[macclient/AppKitClient/main.m](/Users/tyemeclifford/Documents/GH/blog/macclient/AppKitClient/main.m)
[macclient/README.md](/Users/tyemeclifford/Documents/GH/blog/macclient/README.md)
[CHANGELOG.md](/Users/tyemeclifford/Documents/GH/blog/CHANGELOG.md)
This commit is contained in:
Ty Clifford
2026-07-05 21:22:17 -04:00
parent 3e7cea4491
commit df56bfd57c
8 changed files with 366 additions and 38 deletions
+18 -6
View File
@@ -2,13 +2,25 @@
set -eu
ROOT="$(cd "$(dirname "$0")" && pwd)"
APP="$ROOT/TCMSMacClient.app"
PRIMARY_APP="$ROOT/TCMS.app"
LEGACY_APP="$ROOT/TCMSMacClient.app"
SRC="$ROOT/AppKitClient/main.m"
EXECUTABLE="$(/usr/libexec/PlistBuddy -c 'Print :CFBundleExecutable' "$ROOT/AppKitClient/Info.plist")"
mkdir -p "$APP/Contents/MacOS" "$APP/Contents/Resources"
cp "$ROOT/AppKitClient/Info.plist" "$APP/Contents/Info.plist"
/usr/bin/clang -fobjc-arc -mmacosx-version-min=12.0 -framework Cocoa -framework AVKit -framework AVFoundation "$SRC" -o "$APP/Contents/MacOS/$EXECUTABLE"
printf 'APPL????' > "$APP/Contents/PkgInfo"
build_app() {
app="$1"
mkdir -p "$app/Contents/MacOS" "$app/Contents/Resources"
rm -f "$app/Contents/MacOS"/*
cp "$ROOT/AppKitClient/Info.plist" "$app/Contents/Info.plist"
/usr/bin/clang -fobjc-arc -mmacosx-version-min=12.0 -framework Cocoa -framework AVKit -framework AVFoundation "$SRC" -o "$app/Contents/MacOS/$EXECUTABLE"
printf 'APPL????' > "$app/Contents/PkgInfo"
}
echo "Built $APP"
build_app "$PRIMARY_APP"
if [ -d "$LEGACY_APP" ]; then
build_app "$LEGACY_APP"
echo "Updated legacy bundle $LEGACY_APP"
fi
echo "Built $PRIMARY_APP"