Исправить иконку источника ввода
This commit is contained in:
@@ -19,7 +19,7 @@ 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/WhisperKeyInputTemplate.tiff" >/dev/null
|
||||
--out "$INPUT_APP_DIR/Contents/Resources/WhisperKeyInputTemplateV2.tiff" >/dev/null
|
||||
codesign --force --deep --sign - "$INPUT_APP_DIR"
|
||||
|
||||
echo "$APP_DIR"
|
||||
|
||||
@@ -10,6 +10,7 @@ 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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user