macos rime (鼠须管squirrel) Raycast one-click redeploy / scheduled automatic deployment

Create a New Command

image

Choose the template as bash, set the mode to silent (this way the Raycast window won’t pop up during execution), and name it whatever you like. Here, I named it test.
image

Then press ⌘+↩️ to create the sh file.
image

Modify the Newly Created sh File

Open this file, delete the echo "Hello World!" line inside, and replace it with the following (meaning to execute Squirrel with the --reload parameter):

/Library/Input\ Methods/Squirrel.app/Contents/MacOS/Squirrel --reload

Finally, it should look like this inside:

#!/bin/bash

# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title squirrel reload
# @raycast.mode silent


# Optional parameters:
# @raycast.icon 🤖

# Documentation:
# @raycast.author whitewatercn
# @raycast.authorURL https://forum.beginner.center/t/topic/1505

# It's okay if yours looks different above, no worries
Library/Input\ Methods/Squirrel.app/Contents/MacOS/Squirrel --reload

Set up a Shortcut Key

image

Scheduled Execution of this Command

Refer to 利用macOS的自动操作实现登录执行特定shell脚本 | 远方的灯塔 - 专注于服务端技术分享

Thanks

This discusses how to redeploy Squirrel (鼠须管) via command line