impress_asr_input_rust/scripts/download_onnxruntime.sh
impressionyang ceb2df18c4
Some checks are pending
Build Windows GUI / build-windows (push) Waiting to run
Build Windows GUI / release (push) Blocked by required conditions
初始提交:Windows 跨平台语音识别应用
功能:
- Tauri v2 GUI 应用
- 系统托盘支持
- 日志输出到文件
- 带时间戳的版本号
- 前端资源嵌入

修复:
- 前端路径使用相对路径
- 移除 devUrl 配置
- 窗口置顶设置
2026-05-21 17:58:18 +08:00

29 lines
829 B
Bash
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
# 下载并安装 ONNX Runtime Linux x64
set -e
VERSION="1.16.1"
URL="https://github.com/microsoft/onnxruntime/releases/download/v${VERSION}/onnxruntime-linux-x64-${VERSION}.tgz"
TARGET_DIR="/home/ubuntu/workspace/cherry-studio/enginneer/impress_asr_input_rust/lib"
echo "下载 ONNX Runtime ${VERSION}..."
mkdir -p "$TARGET_DIR"
cd "$TARGET_DIR"
# 使用代理下载
export http_proxy="http://127.0.0.1:7897"
export https_proxy="http://127.0.0.1:7897"
curl -L -o onnxruntime.tgz "$URL"
echo "解压..."
tar xzf onnxruntime.tgz
echo "设置环境变量..."
echo "export ONNXRUNTIME_LIB=${TARGET_DIR}/onnxruntime-linux-x64-${VERSION}/lib" >> ~/.bashrc
echo "export LD_LIBRARY_PATH=${TARGET_DIR}/onnxruntime-linux-x64-${VERSION}/lib:\$LD_LIBRARY_PATH" >> ~/.bashrc
echo "完成请运行source ~/.bashrc"