1 Star 0 Fork 0

stevending1st/librime

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
action-install-plugins-macos.sh 691 Bytes
一键复制 编辑 原始数据 按行查看 历史
#!/bin/bash
export RIME_ROOT="$(cd "$(dirname "$0")"; pwd)"
echo "RIME_PLUGINS=${RIME_PLUGINS}" > version-info.txt
echo "librime $(git describe --always)" >> version-info.txt
function action_install_plugin() {
local plugin="$1"
local plugin_dir="$2"
echo "${plugin} $(git -C "${plugin_dir}" describe --always)" >> version-info.txt
if [[ -e "${plugin_dir}/action-install.sh" ]]; then
(cd "${plugin_dir}"; bash ./action-install.sh)
fi
}
declare -fx action_install_plugin
if [[ -n "${RIME_PLUGINS}" ]]; then
# intentionally unquoted: ${RIME_PLUGINS} is a space separated list of slugs
bash ./install-plugins.sh run=action_install_plugin ${RIME_PLUGINS}
fi
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/stevending1st/librime.git
git@gitee.com:stevending1st/librime.git
stevending1st
librime
librime
master

搜索帮助