Ariver
2026-06-07 58c2c4ae5eaca3dff127f2ffb15f9dd2b160f994
privatevoice.src/scripts/build-release-macos.sh
@@ -1,6 +1,6 @@
#!/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
@@ -19,8 +19,8 @@
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)"
@@ -116,6 +116,8 @@
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/"