Preserve macOS app permissions via dynamic launcher, .env workspace path, and session/audio tools
This commit is contained in:
+22
-7
@@ -9,8 +9,19 @@ set -euo pipefail
|
||||
HERE="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
cd "$HERE"
|
||||
|
||||
swiftc -O -parse-as-library SpeechHelper.swift -o speech-helper
|
||||
echo "built $HERE/speech-helper"
|
||||
FORCE=0
|
||||
for arg in "$@"; do
|
||||
if [ "$arg" = "-f" ] || [ "$arg" = "--force" ]; then
|
||||
FORCE=1
|
||||
fi
|
||||
done
|
||||
|
||||
if [ "$FORCE" -eq 1 ] || [ ! -f speech-helper ] || [ SpeechHelper.swift -nt speech-helper ]; then
|
||||
swiftc -O -parse-as-library SpeechHelper.swift -o speech-helper
|
||||
echo "built $HERE/speech-helper"
|
||||
else
|
||||
echo "speech-helper is up to date — skipping recompile"
|
||||
fi
|
||||
|
||||
if ./speech-helper --check >/dev/null 2>&1; then
|
||||
echo "speech-helper runs — ./speech-helper --check for details"
|
||||
@@ -24,12 +35,16 @@ else
|
||||
fi
|
||||
fi
|
||||
|
||||
if swiftc -O -parse-as-library -target arm64-apple-macosx26.0 LLMHelper.swift -o llm-helper 2>/dev/null; then
|
||||
echo "built $HERE/llm-helper"
|
||||
if ./llm-helper --check >/dev/null 2>&1; then
|
||||
echo "llm-helper runs — ./llm-helper --check for details"
|
||||
if [ "$FORCE" -eq 1 ] || [ ! -f llm-helper ] || [ LLMHelper.swift -nt llm-helper ]; then
|
||||
if swiftc -O -parse-as-library -target arm64-apple-macosx26.0 LLMHelper.swift -o llm-helper 2>/dev/null; then
|
||||
echo "built $HERE/llm-helper"
|
||||
if ./llm-helper --check >/dev/null 2>&1; then
|
||||
echo "llm-helper runs — ./llm-helper --check for details"
|
||||
fi
|
||||
else
|
||||
echo "could not build llm-helper with FoundationModels; fallback to Python MLX bridge will be available"
|
||||
fi
|
||||
else
|
||||
echo "could not build llm-helper with FoundationModels; fallback to Python MLX bridge will be available"
|
||||
echo "llm-helper is up to date — skipping recompile"
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user