netease-cloud-music-gtk
netease-cloud-music-gtk copied to clipboard
打包出来mac和windows版本
mac 应该可以直接编译通过,windows 由于依赖问题还无法支持。
我手动处理了下.exe 后缀 可以编译、安装,界面完全没问题,但是点击歌曲全部是·没有歌曲了·
@wrb2012 “没有歌曲了”是啥意思?无法获取歌曲列表还是获取了无法播放?
另外可以打开调试日志看看有没有什么提示。
作者您好! 就是歌曲列表里是有时间的,点击播放键,下面的进度条右边显示0.0 另外.cache文件夹也没生成。 这里是最后的log
[2024-01-14T15:29:21Z DEBUG isahc::handler] handler;
[2024-01-14T15:29:21Z DEBUG isahc::handler] handler; id=2
[2024-01-14T15:29:21Z DEBUG isahc::handler] Host interface3.music.163.com:443 was resolved.
[2024-01-14T15:29:21Z DEBUG isahc::handler] IPv6: (none)
[2024-01-14T15:29:21Z DEBUG isahc::handler] IPv4: 183.136.182.19, 115.238.119.68
[2024-01-14T15:29:21Z DEBUG isahc::handler] Trying 183.136.182.19:443...
[2024-01-14T15:29:21Z DEBUG isahc::handler] Connected to interface3.music.163.com (183.136.182.19) port 443
[2024-01-14T15:29:21Z DEBUG isahc::handler] schannel: disabled automatic use of client certificate
[2024-01-14T15:29:21Z DEBUG isahc::handler] using HTTP/1.x
[2024-01-14T15:29:21Z DEBUG isahc::handler] We are completely uploaded and fine
[2024-01-14T15:29:21Z DEBUG isahc::handler] schannel: remote party requests renegotiation
[2024-01-14T15:29:21Z DEBUG isahc::handler] schannel: renegotiating SSL/TLS connection
[2024-01-14T15:29:21Z DEBUG isahc::handler] schannel: SSL/TLS connection renegotiated
[2024-01-14T15:29:21Z DEBUG isahc::handler] schannel: remote party requests renegotiation
[2024-01-14T15:29:21Z DEBUG isahc::handler] schannel: renegotiating SSL/TLS connection
[2024-01-14T15:29:21Z DEBUG isahc::handler] schannel: SSL/TLS connection renegotiated
[2024-01-14T15:29:21Z DEBUG isahc::handler] Connection #8 to host interface3.music.163.com left intact
[2024-01-14T15:29:21Z DEBUG netease_cloud_music_gtk4::application] 获取歌曲播放链接: [SongUrl { id: 2113769005, url: "http://m801.music.126.net/20240114235421/7d669d62ebbf6998e0e461fca6bb3a9c/jdymusic/obj/wo3DlMOGwrbDjj7DisKw/32536097438/354c/582d/8fb6/50a3d863c87adbab8ee1e6b4ee8d9a5a.mp3", rate: 128000 }]
[2024-01-14T15:29:21Z DEBUG netease_cloud_music_gtk4::application] 播放歌曲: SongInfo { id: 2113769005, name: "浮光 (伴奏)", singer: "周深", album: "浮光", album_id: 181957307, pic_url: "https://p4.music.126.net/zfdCU3cL-dsTqVvjmKPrjg==/109951169222823883.jpg", duration: 274544, song_url: "http://m801.music.126.net/20240114235421/7d669d62ebbf6998e0e461fca6bb3a9c/jdymusic/obj/wo3DlMOGwrbDjj7DisKw/32536097438/354c/582d/8fb6/50a3d863c87adbab8ee1e6b4ee8d9a5a.mp3", copyright: VipOnlyHighRate }
[2024-01-14T15:30:28Z DEBUG isahc::client] send_async; method=POST uri=https://interface3.music.163.com/eapi/song/enhance/player/url
[2024-01-14T15:30:28Z DEBUG isahc::handler] handler;
[2024-01-14T15:30:28Z DEBUG isahc::handler] handler; id=2
[2024-01-14T15:30:28Z DEBUG isahc::handler] Connection 7 seems to be dead
[2024-01-14T15:30:28Z DEBUG isahc::handler] Closing connection
[2024-01-14T15:30:28Z DEBUG isahc::handler] schannel: shutting down SSL/TLS connection with music.163.com port 443
[2024-01-14T15:30:28Z DEBUG isahc::handler] Connection 8 seems to be dead
[2024-01-14T15:30:28Z DEBUG isahc::handler] Closing connection
[2024-01-14T15:30:28Z DEBUG isahc::handler] schannel: shutting down SSL/TLS connection with interface3.music.163.com port 443
[2024-01-14T15:30:28Z DEBUG isahc::handler] Hostname in DNS cache was stale, zapped
[2024-01-14T15:30:28Z DEBUG isahc::handler] Host interface3.music.163.com:443 was resolved.
[2024-01-14T15:30:28Z DEBUG isahc::handler] IPv6: (none)
[2024-01-14T15:30:28Z DEBUG isahc::handler] IPv4: 115.238.119.68, 183.136.182.19
[2024-01-14T15:30:28Z DEBUG isahc::handler] Trying 115.238.119.68:443...
[2024-01-14T15:30:28Z DEBUG isahc::handler] Connected to interface3.music.163.com (115.238.119.68) port 443
[2024-01-14T15:30:28Z DEBUG isahc::handler] schannel: disabled automatic use of client certificate
[2024-01-14T15:30:28Z DEBUG isahc::handler] using HTTP/1.x
[2024-01-14T15:30:28Z DEBUG isahc::handler] We are completely uploaded and fine
[2024-01-14T15:30:28Z DEBUG isahc::handler] schannel: remote party requests renegotiation
[2024-01-14T15:30:28Z DEBUG isahc::handler] schannel: renegotiating SSL/TLS connection
[2024-01-14T15:30:28Z DEBUG isahc::handler] schannel: SSL/TLS connection renegotiated
[2024-01-14T15:30:28Z DEBUG isahc::handler] schannel: remote party requests renegotiation
[2024-01-14T15:30:28Z DEBUG isahc::handler] schannel: renegotiating SSL/TLS connection
[2024-01-14T15:30:28Z DEBUG isahc::handler] schannel: SSL/TLS connection renegotiated
[2024-01-14T15:30:28Z DEBUG isahc::handler] Connection #9 to host interface3.music.163.com left intact
[2024-01-14T15:30:28Z DEBUG netease_cloud_music_gtk4::application] 获取歌曲播放链接: [SongUrl { id: 2112196350, url: "http://m801.music.126.net/20240114235527/a013358728231b3bb5b5dd3dec2a6f6d/jdymusic/obj/wo3DlMOGwrbDjj7DisKw/32407773704/a682/f6b2/df52/61f2ae63f9dcb675fc99f7b8567d3153.mp3", rate: 128000 }]
[2024-01-14T15:30:28Z DEBUG netease_cloud_music_gtk4::application] 播放歌曲: SongInfo { id: 2112196350, name: "浮光", singer: "周深", album: "浮光", album_id: 181957307, pic_url: "https://p4.music.126.net/zfdCU3cL-dsTqVvjmKPrjg==/109951169222823883.jpg", duration: 274544, song_url: "http://m801.music.126.net/20240114235527/a013358728231b3bb5b5dd3dec2a6f6d/jdymusic/obj/wo3DlMOGwrbDjj7DisKw/32407773704/a682/f6b2/df52/61f2ae63f9dcb675fc99f7b8567d3153.mp3", copyright: VipOnlyHighRate }
这是我手动装的依赖:
pacman -Qe
base 2022.06-1
filesystem 2023.02.07-1
git 2.42.0-2
mingw-w64-ucrt-x86_64-cmake 3.27.7-1
mingw-w64-ucrt-x86_64-dbus 1.14.10-1
mingw-w64-ucrt-x86_64-gst-plugins-bad 1.22.6-1
mingw-w64-ucrt-x86_64-gtk4 4.12.3-1
mingw-w64-ucrt-x86_64-gtk4-media-gstreamer 4.12.3-1
mingw-w64-ucrt-x86_64-libadwaita 1.4.0-1
mingw-w64-ucrt-x86_64-meson 1.2.3-1
mingw-w64-ucrt-x86_64-neovim 0.9.4-1
mingw-w64-ucrt-x86_64-rust 1.73.0-1
msys2-runtime 3.4.9-2
打扰了。
在查看 issue #202 后,我安装了 mingw-w64-ucrt-x86_64-gst-plugins-good
,现在Windows版本一切正常!
Edit:
可能是底层dll的问题,这个内存占用一直在涨。
还是感谢作者大大,自身的代码真稳定!
(学习1/4 坤年的我没看懂api里是怎么组合出url的)