Удалить нестабильный системный ввод

This commit is contained in:
2026-07-29 16:17:50 +06:00
parent 45ba41416a
commit 67895c6157
11 changed files with 23 additions and 640 deletions
+1 -10
View File
@@ -3,9 +3,9 @@ set -euo pipefail
PROJECT_DIR=${0:A:h:h}
APP_DIR="$PROJECT_DIR/dist/WhisperKey.app"
INPUT_APP_DIR="$PROJECT_DIR/dist/WhisperKeyInput.app"
cd "$PROJECT_DIR"
rm -rf "$PROJECT_DIR/dist/WhisperKeyInput.app"
swift build -c release
rm -rf "$APP_DIR"
@@ -14,13 +14,4 @@ cp "$PROJECT_DIR/.build/release/WhisperKey" "$APP_DIR/Contents/MacOS/WhisperKey"
cp "$PROJECT_DIR/Resources/Info.plist" "$APP_DIR/Contents/Info.plist"
codesign --force --deep --sign - "$APP_DIR"
rm -rf "$INPUT_APP_DIR"
mkdir -p "$INPUT_APP_DIR/Contents/MacOS" "$INPUT_APP_DIR/Contents/Resources"
cp "$PROJECT_DIR/.build/release/WhisperKeyInput" "$INPUT_APP_DIR/Contents/MacOS/WhisperKeyInput"
cp "$PROJECT_DIR/Resources/InputMethod-Info.plist" "$INPUT_APP_DIR/Contents/Info.plist"
sips -s format tiff "$PROJECT_DIR/Resources/WhisperKeyInput.svg" \
--out "$INPUT_APP_DIR/Contents/Resources/WhisperKeyInputTemplateV2.tiff" >/dev/null
codesign --force --deep --sign - "$INPUT_APP_DIR"
echo "$APP_DIR"
echo "$INPUT_APP_DIR"
+1 -4
View File
@@ -8,11 +8,9 @@ pkill -x WhisperKey 2>/dev/null || true
ditto "$PROJECT_DIR/dist/WhisperKey.app" "/Applications/WhisperKey.app"
INPUT_METHOD_DIR="$HOME/Library/Input Methods"
mkdir -p "$INPUT_METHOD_DIR"
pkill -x WhisperKeyInput 2>/dev/null || true
rm -rf "$INPUT_METHOD_DIR/WhisperKeyInput.app"
ditto "$PROJECT_DIR/dist/WhisperKeyInput.app" "$INPUT_METHOD_DIR/WhisperKeyInput.app"
open -gja "$INPUT_METHOD_DIR/WhisperKeyInput.app"
killall TextInputMenuAgent 2>/dev/null || true
LOGIN_AGENT_DIR="$HOME/Library/LaunchAgents"
LOGIN_AGENT="$LOGIN_AGENT_DIR/com.romanv.WhisperKey.plist"
@@ -24,4 +22,3 @@ launchctl bootstrap "gui/$(id -u)" "$LOGIN_AGENT"
open "/Applications/WhisperKey.app"
echo "Installed: /Applications/WhisperKey.app"
echo "Installed: $INPUT_METHOD_DIR/WhisperKeyInput.app"