| | |
| | | #!/usr/bin/env bash |
| | | # |
| | | # build-local-macos.sh - Build a locally signed macOS app and DMG for PrivateVoice Input. |
| | | # build-local-macos.sh - Build a locally signed macOS app and DMG for PrivateVoice Dictation. |
| | | # |
| | | # This script intentionally does not notarize. It creates or reuses a stable |
| | | # local Code Signing identity so macOS TCC permissions, such as Accessibility, |
| | |
| | | # |
| | | set -euo pipefail |
| | | |
| | | APP_NAME="PrivateVoice Input" |
| | | APP_NAME="PrivateVoice Dictation" |
| | | DEFAULT_LOCAL_IDENTITY="PrivateVoice Local Code Signing" |
| | | LEGACY_LOCAL_IDENTITY="VoiceSnap Local Code Signing" |
| | | LOCAL_IDENTITY="${PRIVATEVOICE_LOCAL_SIGN_IDENTITY:-${VOICESNAP_LOCAL_SIGN_IDENTITY:-}}" |
| | |
| | | cp "$INFO_PLIST" "$APP_BUNDLE/Contents/Info.plist" |
| | | cp "$BUILD_DIR/$APP_NAME" "$APP_BUNDLE/Contents/MacOS/$APP_NAME" |
| | | cp "$PROJECT_DIR/build/darwin/icon.icns" "$APP_BUNDLE/Contents/Resources/icon.icns" |
| | | find "$PROJECT_DIR/build/darwin" -maxdepth 1 -type d -name "*.lproj" \ |
| | | -exec cp -R {} "$APP_BUNDLE/Contents/Resources/" \; |
| | | cp "$SHERPA_LIB_DIR/libsherpa-onnx-c-api.dylib" "$APP_BUNDLE/Contents/Frameworks/" |
| | | cp "$ONNXRUNTIME_DYLIB" "$APP_BUNDLE/Contents/Frameworks/" |
| | | |