Files
tcms/macclient/build-app.sh
T
Ty Clifford df56bfd57c - 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)
2026-07-05 21:22:17 -04:00

27 lines
815 B
Bash
Executable File

#!/bin/sh
set -eu
ROOT="$(cd "$(dirname "$0")" && pwd)"
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")"
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"
}
build_app "$PRIMARY_APP"
if [ -d "$LEGACY_APP" ]; then
build_app "$LEGACY_APP"
echo "Updated legacy bundle $LEGACY_APP"
fi
echo "Built $PRIMARY_APP"