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

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"