项目作者: ZetaoYang

项目描述 :
netease-cloud-music AppImage
高级语言: Python
项目地址: git://github.com/ZetaoYang/netease-cloud-music-appimage.git
创建时间: 2019-04-28T11:44:08Z
项目社区:https://github.com/ZetaoYang/netease-cloud-music-appimage

开源协议:

下载


netease-cloud-music-appimage

Total Downloads

netease-cloud-music AppImage package, it supports SQ lossless audio(FLAC), and enjoy!

interface

about

Build

  1. pkg2appimage ./workspace/netease-cloud-music.yml

There’re three ways to trigger appimage building,

  • Get your own personal access token.

    POST /repos/:owner/:repo/dispatches

    Trigger with curl command, example,

    1. curl -H "Accept: application/Accept: application/vnd.github.v3.full+json" \
    2. -H "Authorization: token your-personal-token" \
    3. --request POST \
    4. --data '{\"event_type\": \"netease-cloud-music-appimage-build\"}' \
    5. https://api.github.com/repos/zetaoyang/netease-cloud-music-appimage/dispatches

    or

    1. curl -H "Accept: application/Accept: application/vnd.github.v3.full+json" \
    2. -H "Authorization: token your-personal-token" \
    3. --request POST \
    4. --data '{\"event_type\": \"netease-cloud-music-appimage-build\", \"client_payload\": { \"version\": \"0.1.0\"}}' \
    5. https://api.github.com/repos/zetaoyang/netease-cloud-music-appimage/dispatches
  • Push changes on master branch.

  • Pull request changes on master branch.

Usage 1

  1. cat > netease-cloud-music.desktop <<EOF
  2. [Desktop Entry]
  3. Version=1.0
  4. Type=Application
  5. Name=NetEase Cloud Music
  6. Name[zh_CN]=网易云音乐
  7. Name[zh_TW]=網易雲音樂
  8. Comment=NetEase Cloud Music
  9. Comment[zh_CN]=网易云音乐
  10. Comment[zh_TW]=網易雲音樂
  11. Icon=netease-cloud-music
  12. Exec=netease-cloud-music %U
  13. Categories=AudioVideo;Player;
  14. Terminal=false
  15. StartupNotify=true
  16. StartupWMClass=netease-cloud-music
  17. MimeType=audio/aac;audio/flac;audio/mp3;audio/mp4;audio/mpeg;audio/ogg;audio/x-ape;audio/x-flac;audio/x-mp3;audio/x-mpeg;audio/x-ms-wma;audio/x-vorbis;audio/x-vorbis+ogg;audio/x-wav;
  18. EOF
  19. cp netease-cloud-music.desktop /usr/share/applications/
  20. cp NetEase_Cloud_Music-*.AppImage /usr/local/bin/netease-cloud-music
  21. chmod a+x /usr/local/bin/netease-cloud-music
  22. netease-cloud-music

Usage 2

  1. chmod u+x NetEase_Cloud_Music-*.AppImage
  2. ./NetEase_Cloud_Music-*.AppImage

HiDPI (High Dots Per Inch)

  1. cp NetEase_Cloud_Music-*.AppImage /usr/local/bin/netease-cloud-music
  2. cat > netease-cloud-music-hidpi.sh <<EOF
  3. #! /bin/bash
  4. # doc, https://doc.qt.io/qt-5/highdpi.html#high-dpi-support-in-qt
  5. # QT_SCALE_FACTOR [numeric] defines a global scale factor for the whole application, including point-sized fonts.
  6. export QT_SCALE_FACTOR=1.75
  7. # Or
  8. # QT_AUTO_SCREEN_SCALE_FACTOR [boolean] enables automatic scaling, based on the monitor's pixel density. This won't change the size of point-sized fonts, since point is a physical measurement unit. Multiple screens may get different scale factors.
  9. # export QT_AUTO_SCREEN_SCALE_FACTOR=1
  10. if [ -e /usr/local/bin/netease-cloud-music ] ; then
  11. exec /usr/local/bin/netease-cloud-music
  12. else
  13. exec netease-cloud-music
  14. fi
  15. EOF
  16. chmod u+x netease-cloud-music-hidpi.sh
  17. ./netease-cloud-music-hidpi.sh

Acknowledgement

  1. The package building method used in this project is pkg2appimage.

  2. Solve the problem that netease cloud music for Linux can not play lossless audio format (FLAC) music. thanks to EHfive’s ncm.patch and his blog article.

    Patch VLC to make the Content-Type of flac network files/streams always be “audio/flac” to “fix” the problem that VLC fails to recognize the flac network files correctly due to the Content-Type of “audio/mpeg” obtained by NetEase Cloud Music for Linux.

Known issues

  1. As of about October 2022, the “Personalized Recommendations” page is no longer available. Maybe it is due to the interface breaking changes on NetEase. Report1, Report2, Report3, Report4, Report5, Report6.

Troubleshooting

  1. Q: netease-cloud-music: error while loading shared libraries: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory

    A: Try dnf install gtk2 if you’re using fedora.

  2. Q: netease-cloud-music: error while loading shared libraries: libnsl.so.1: cannot open shared object file: No such file or directory

    A: Try dnf install libnsl if you’re using fedora.