| | |
| | | #!/usr/bin/env bash |
| | | # |
| | | # build-release-macos.sh — Build a signed & notarized macOS DMG for PrivateVoice Input |
| | | # build-release-macos.sh — Build a signed & notarized macOS DMG for PrivateVoice Dictation |
| | | # |
| | | # Prerequisites (one-time): |
| | | # 1. Install Developer ID certificate in Keychain |
| | |
| | | IDENTITY="Developer ID Application: Ningbo Zhuozhi Innovation Network Technology Co., Ltd. (3HY4G7M2AL)" |
| | | KEYCHAIN_PROFILE="privatevoice" |
| | | |
| | | APP_NAME="PrivateVoice Input" |
| | | BUNDLE_ID="com.privatevoice.input" |
| | | APP_NAME="PrivateVoice Dictation" |
| | | BUNDLE_ID="com.shanghai3168.privatevoicedictation" |
| | | |
| | | SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" |
| | | PROJECT_DIR="$(cd "$SCRIPT_DIR/.." && pwd)" |
| | |
| | | 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/" \; |
| | | |
| | | # Copy dylibs |
| | | cp "$SHERPA_LIB_DIR/libsherpa-onnx-c-api.dylib" "$APP_BUNDLE/Contents/Frameworks/" |