Root cause: ad-hoc signatures default to designated => cdhash, which changes every build, and TCC stores Screen Recording/Accessibility grants against it, so a rebuilt app showed 'Not allowed' with its switch on. finalize-app.mjs re-signs with designated => identifier "com.openclicky.app" (helper/voice likewise) and builds the DMG; app:install installs it. Settings gets 'Reset & ask again' (tccutil reset for com.openclicky.app only). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
12 lines
479 B
Bash
12 lines
479 B
Bash
#!/bin/sh
|
|
# Install the built app into /Applications (quits the running copy first) and open it.
|
|
set -e
|
|
APP="$(cd "$(dirname "$0")/.." && pwd)/target/release/bundle/macos/openclicky.app"
|
|
osascript -e 'quit app "openclicky"' >/dev/null 2>&1 || true
|
|
pkill -f "openclicky.app/Contents/MacOS" >/dev/null 2>&1 || true
|
|
sleep 1
|
|
rm -rf /Applications/openclicky.app
|
|
ditto "$APP" /Applications/openclicky.app
|
|
open /Applications/openclicky.app
|
|
echo "Installed /Applications/openclicky.app"
|