kiddyuchina / Vsc Mikutap
Labels
Projects that are alternatives of or similar to Vsc Mikutap
Feature
原作地址: https://aidn.jp/mikutap
插件使用 Webview 实现
Requirement
VS Code for Windows 自 1.31.0 起自带完整的 ffmpeg 动态链接库,无需替换;macOS 与 Linux 平台仍需替换
VS Code 使用的 Electron 版本不包含 ffmpeg,需替换自带的 ffmpeg 动态链接库才能正常播放 (每次更新 VS Code 都需重新替换)
Manual Replacement
通过 VS Code 版本在 https://raw.githubusercontent.com/Microsoft/vscode/%version%/.yarnrc
查看其使用的 Electron 版本,并于 https://github.com/electron/electron/releases/tag/%version%
下载对应的 Electron 完整版本进行替换
Windows
下载 electron-%version%-win32-%arch%.zip
替换 ./ffmpeg.dll
macOS
下载 electron-%version%-darwin-x64.zip
替换 ./Electron.app/Contents/Frameworks/Electron\ Framework.framework/Libraries/libffmpeg.dylib
Linux
下载 electron-%version%-linux-%arch%.zip
替换 ./libffmpeg.so
Automatic Replacement
使用 Python 脚本替换 (Python 2/3 均可,绝大部分发行版自带环境)
默认安装位置下 Linux 和 Windows 需要以管理员身份运行,macOS 不需要
Windows Powershell
Invoke-RestMethod https://gist.githubusercontent.com/nondanee/f157bbbccecfe29e48d87273cd02e213/raw | python
Unix Shell
curl https://gist.githubusercontent.com/nondanee/f157bbbccecfe29e48d87273cd02e213/raw | python
如果 VS Code 使用默认配置安装,脚本会自动寻找并替换,若自定义了安装位置,请自行修改 installation
Usage
按下 F1 或 Ctrl Shift P 打开命令面板
输入命令前缀 Mikutap
开始探索 :D
Known Issue
- Webview 标签无法隐藏,使用时请不要关闭标签
Thanks
- 原作者: daniwell
- Icon: Jun-Himekawa
- 实现方式: VSC 网易云音乐插件