scripts/reset-native-qa-permissions.sh
scripts/reset-native-qa-permissions.shBrowse 2 files
237 tokens
826 bytes
Token encoding: o200k_base
Snapshot 143e3d8
← Back to SKILL.md
1#!/usr/bin/env bash2 3set -euo pipefail4 5[[ $# -eq 0 ]] || {6 echo "Usage: $0" >&27 exit 28}9 10[[ "$(uname -s)" == "Darwin" ]] || {11 echo "Staging QA permission reset requires macOS." >&212 exit 113}14 15qa_process_status=016pgrep -x "anarlog-staging" >/dev/null || qa_process_status=$?17case "$qa_process_status" in18 0)19 echo "Quit Anarlog Staging before resetting permissions." >&220 exit 121 ;;22 1) ;;23 *)24 echo "Could not determine whether Anarlog Staging is running." >&225 exit 126 ;;27esac28 29# Reset before LaunchServices starts the process that will request permission.30for qa_service in Microphone AudioCapture ScreenCapture Accessibility Calendar Reminders; do31 tccutil reset "$qa_service" com.hyprnote.staging32done33 34echo "Permissions reset for com.hyprnote.staging. Launch normally, without ONBOARDING."35 