nilaoda / N_m3u8DL-CLI

[.NET] m3u8 downloader 开源的命令行m3u8/HLS/dash下载器,支持普通AES-128-CBC解密,多线程,自定义请求头等. 支持简体中文,繁体中文和英文. English Supported.
https://nilaoda.github.io/N_m3u8DL-CLI/
MIT License
14.11k stars 2.14k forks source link

wine 中运行困难 #345

Open HengyueLi opened 3 years ago

HengyueLi commented 3 years ago

很优秀的软件,但是只能在Windows 中运行有点遗憾。我刚刚试了在wine中运行各种报错。 请问有可能用过wine实现跨平台操作吗?

nilaoda commented 3 years ago

之后应该会有跨平台版本的。请问wine报错都是些什么错?我看看能不能规避一下

HengyueLi commented 3 years ago

@nilaoda 是我的问题,以前没有用wine跑过走网络的cli。 搞了半天,终于跑通了。输出乱七八糟的,不过可以用。OS=macos 10.14.6 非常优秀!~

HengyueLi commented 3 years ago

做个笔记,万一有小伙伴也走弯路。

For the wine case, if there is any error message related to wine-mono, try the following:

    # Create dir for 32 bit prefix
    mkdir ~/.wine32
    # destroy default configuration (64 bit prefix)
    rm -rf ~/.wine 

    # Initial setup (create prefixes)
    WINEPREFIX="$HOME/.wine32" WINEARCH=win32 wine wineboot
    WINEPREFIX="$HOME/.wine" WINEARCH=win64 wine64 wineboot

    # To install dotnet35 on 32-bit prefix
    WINEPREFIX="$HOME/.wine32" WINEARCH=win32 winetricks dotnet45

see here