Skip to content

Conversation

@likai757
Copy link

@likai757 likai757 commented Mar 3, 2024

由于M3不兼容 txiki,重新编译了txiki > tjs
有M芯片不支持的同学可以用此版本

@likai757
Copy link
Author

likai757 commented Mar 3, 2024

info.plist bash脚本参考:Translate.alfredworkflow

ARCH=$(uname -m)
if [[ "$ARCH" == "arm64" ]]; then
./runtime/tjs run ./index.js "$1"
elif [[ "$ARCH" == "x86_64" ]]; then
./runtime/txiki ./index.js "$1"
else
echo "Unsupported architecture: $ARCH"
exit 1
fi

@ZevveZ
Copy link

ZevveZ commented May 17, 2025

提供一个版本,在M4 芯片上可运行的workflow,改动点

  • 编译了当前最新的txiki
  • 解决翻译结果中文乱码问题(感觉是txiki 的问题,使用node 环境就没有问题)

Youdao Translator.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants