Skip to content
This repository has been archived by the owner on Jun 26, 2024. It is now read-only.

windows用户投来羡慕嫉妒恨的眼光 #35

Open
jae-jae opened this issue Oct 10, 2017 · 52 comments
Open

windows用户投来羡慕嫉妒恨的眼光 #35

jae-jae opened this issue Oct 10, 2017 · 52 comments

Comments

@jae-jae
Copy link

jae-jae commented Oct 10, 2017

哼!😒

@nondanee
Copy link

nondanee commented Oct 10, 2017

要不等我造出来 nondanee/Glee
😣😣😣😣😣

@trazyn
Copy link
Owner

trazyn commented Oct 10, 2017

@nondanee hhhhhhh,看谁轮子先弄好了

@jae-jae
Copy link
Author

jae-jae commented Oct 10, 2017

默默观战
image

@nondanee
Copy link

@trazyn 大佬求放过

@S7venYoung
Copy link

大佬什么时候能初Windows版本

@trazyn
Copy link
Owner

trazyn commented Oct 11, 2017

这个周末补上

@startewho
Copy link

我把main.js里面的创建窗口时,设置了frame=false.确实是无边框了,但是也不响应点击事件了。

@trazyn
Copy link
Owner

trazyn commented Oct 17, 2017

@startewho 应该是 -webkit-app: drag 属性在windows下被忽略

@hellozhaoming
Copy link

大佬,坐等windows

@trazyn
Copy link
Owner

trazyn commented Oct 18, 2017

官方疑似已取消高频调用限制,为不扩大影响,低调使用,不打算发windows,你们可以自行打包

@hellozhaoming
Copy link

大佬,求自行编译的教程链接

@trazyn
Copy link
Owner

trazyn commented Oct 19, 2017

@hellozhaoming 可以参考wewechat的windows编译

@hellozhaoming
Copy link

hellozhaoming commented Oct 19, 2017

编译成功了,感谢@nondanee 提醒

1.下载并安装npm:https://www.npmjs.com/get-npm?utm_source=house&utm_medium=homepage&utm_campaign=free%20orgs&utm_term=Install%20npm
2.下载并安装git-shell
3.下载ieaseMusic源代码,下载NeteaseCloudMusicApi代码到相应文件夹
4.为防止nsis被墙,改一下npm源:npm install -g cnpm --registry=http://r.cnpmjs.org
5.git-bash终端:npm install
6.打包:npm run package-win
7.新生成了release文件夹里就有exe文件了

但是目前不能通过右上角的×关闭程序,而是桌面右下角任务栏右键quit才行

@nondanee
Copy link

@hellozhaoming 老哥你只是启动了开发版,编译不是这样的😂
既然你能顺利npm install,我就当你已经有爬墙技巧了吧~(npm set proxy/https-proxy)

另外还要在package.json里改点东西
line 11 "build": "rm -rf dist && npm run build-main && npm run build-renderer",
删掉rm -rf dist &&
line 15 "package-mac": "npm run build && rm -rf release && build --mac --projectDir ./dist",
删掉 rm -rf release &&
因为windows shell 里就没有rm

然后npm run package-win
编译中用electron-builder需要下载winCodeSign和nsis需要爬墙下载
编译比较花时间(也可能因为我电脑比较垃圾)

@hellozhaoming
Copy link

@nondanee 哦哦,git新手好多不懂
不过我是教育网自带翻墙
我用的git-bash的版本是可以识别rm命令的

@nondanee
Copy link

nondanee commented Oct 19, 2017

https://drive.google.com/open?id=0B8K7gdEWY7snVlZ1dUpFLWE3eUk
安装版

其实雷锋表示不建议在win上用这个

  • 默认字体中易宋体比较难看
  • 有menu,又不是frameless窗口,可操作范围非常小

@nondanee
Copy link

@hellozhaoming 我的校网就没这待遇TAT
自从知道powershell很牛逼我就用powershell了(逃

@ysc3839
Copy link

ysc3839 commented Oct 20, 2017

刚刚试了一下,明明能正常运行……
有边框不太好看,然后桌面通知有点烦人……

@trazyn
Copy link
Owner

trazyn commented Oct 20, 2017

@ysc3839 桌面通知可以在设置里面取消掉

@airectx
Copy link

airectx commented Oct 28, 2017

根据 @hellozhaoming 的步骤打包报错了... 看问题像是有关模块的?
2017-10-28T11_53_43_490Z-debug.log

WARNING in ./node_modules/_express@4.16.2@express/lib/view.js
81:13-25 Critical dependency: the request of a dependency is an expression
 @ ./node_modules/_express@4.16.2@express/lib/view.js
 @ ./node_modules/_express@4.16.2@express/lib/application.js
 @ ./node_modules/_express@4.16.2@express/lib/express.js
 @ ./node_modules/_express@4.16.2@express/index.js
 @ ./server/api/hot_album.js
 @ ./server/api.js
 @ ./main.js
 @ multi babel-polyfill ./main.js

ERROR in ./server/api/login.js
Module not found: Error: Can't resolve '../../NeteaseCloudMusicApi/util/util' in 'D:\ieaseMusic-1.0.1\server\api'
 @ ./server/api/login.js 7:15-62
 @ ./server/api.js
 @ ./main.js
 @ multi babel-polyfill ./main.js

ERROR in ./server/api/hot_album.js
Module not found: Error: Can't resolve '../../NeteaseCloudMusicApi/util/util' in 'D:\ieaseMusic-1.0.1\server\api'
 @ ./server/api/hot_album.js 6:15-62
 @ ./server/api.js
 @ ./main.js
 @ multi babel-polyfill ./main.js

ERROR in ./server/api/subscribe.js
Module not found: Error: Can't resolve '../../NeteaseCloudMusicApi/util/util' in 'D:\ieaseMusic-1.0.1\server\api'
 @ ./server/api/subscribe.js 6:15-62
 @ ./server/api.js
 @ ./main.js
 @ multi babel-polyfill ./main.js

ERROR in ./server/api/follow.js
Module not found: Error: Can't resolve '../../NeteaseCloudMusicApi/util/util' in 'D:\ieaseMusic-1.0.1\server\api'
 @ ./server/api/follow.js 6:15-62
 @ ./server/api.js
 @ ./main.js
 @ multi babel-polyfill ./main.js

ERROR in ./server/api/unfollow.js
Module not found: Error: Can't resolve '../../NeteaseCloudMusicApi/util/util' in 'D:\ieaseMusic-1.0.1\server\api'
 @ ./server/api/unfollow.js 6:15-62
 @ ./server/api.js
 @ ./main.js
 @ multi babel-polyfill ./main.js

ERROR in ./server/api/sub.js
Module not found: Error: Can't resolve '../../NeteaseCloudMusicApi/util/util' in 'D:\ieaseMusic-1.0.1\server\api'
 @ ./server/api/sub.js 6:15-62
 @ ./server/api.js
 @ ./main.js
 @ multi babel-polyfill ./main.js

ERROR in ./server/api/unsub.js
Module not found: Error: Can't resolve '../../NeteaseCloudMusicApi/util/util' in 'D:\ieaseMusic-1.0.1\server\api'
 @ ./server/api/unsub.js 6:15-62
 @ ./server/api.js
 @ ./main.js
 @ multi babel-polyfill ./main.js

ERROR in ./server/api/unsubscribe.js
Module not found: Error: Can't resolve '../../NeteaseCloudMusicApi/util/util' in 'D:\ieaseMusic-1.0.1\server\api'
 @ ./server/api/unsubscribe.js 6:15-62
 @ ./server/api.js
 @ ./main.js
 @ multi babel-polyfill ./main.js

ERROR in ./server/api.js
Module not found: Error: Can't resolve '../NeteaseCloudMusicApi/router/album' in 'D:\ieaseMusic-1.0.1\server'
 @ ./server/api.js 46:18-65
 @ ./main.js
 @ multi babel-polyfill ./main.js

ERROR in ./server/api.js
Module not found: Error: Can't resolve '../NeteaseCloudMusicApi/router/artist_album' in 'D:\ieaseMusic-1.0.1\server'
 @ ./server/api.js 52:25-79
 @ ./main.js
 @ multi babel-polyfill ./main.js

ERROR in ./server/api.js
Module not found: Error: Can't resolve '../NeteaseCloudMusicApi/router/artists' in 'D:\ieaseMusic-1.0.1\server'
 @ ./server/api.js 49:20-69
 @ ./main.js
 @ multi babel-polyfill ./main.js

ERROR in ./server/api.js
Module not found: Error: Can't resolve '../NeteaseCloudMusicApi/router/artists_desc' in 'D:\ieaseMusic-1.0.1\server'
 @ ./server/api.js 55:24-78
 @ ./main.js
 @ multi babel-polyfill ./main.js

ERROR in ./server/api.js
Module not found: Error: Can't resolve '../NeteaseCloudMusicApi/router/artists_mv' in 'D:\ieaseMusic-1.0.1\server'
 @ ./server/api.js 58:22-74
 @ ./main.js
 @ multi babel-polyfill ./main.js

ERROR in ./server/api.js
Module not found: Error: Can't resolve '../NeteaseCloudMusicApi/router/banner' in 'D:\ieaseMusic-1.0.1\server'
 @ ./server/api.js 61:19-67
 @ ./main.js
 @ multi babel-polyfill ./main.js

ERROR in ./server/api.js
Module not found: Error: Can't resolve '../NeteaseCloudMusicApi/router/check_music' in 'D:\ieaseMusic-1.0.1\server'
 @ ./server/api.js 63:24-77
 @ ./main.js
 @ multi babel-polyfill ./main.js

ERROR in ./server/api.js
Module not found: Error: Can't resolve '../NeteaseCloudMusicApi/router/comment_album' in 'D:\ieaseMusic-1.0.1\server'
 @ ./server/api.js 69:26-81
 @ ./main.js
 @ multi babel-polyfill ./main.js

ERROR in ./server/api.js
Module not found: Error: Can't resolve '../NeteaseCloudMusicApi/router/comment_dj' in 'D:\ieaseMusic-1.0.1\server'
 @ ./server/api.js 76:23-75
 @ ./main.js
 @ multi babel-polyfill ./main.js

ERROR in ./server/api.js
Module not found: Error: Can't resolve '../NeteaseCloudMusicApi/router/comment_like' in 'D:\ieaseMusic-1.0.1\server'
 @ ./server/api.js 74:25-79
 @ ./main.js
 @ multi babel-polyfill ./main.js

ERROR in ./server/api.js
Module not found: Error: Can't resolve '../NeteaseCloudMusicApi/router/comment_music' in 'D:\ieaseMusic-1.0.1\server'
 @ ./server/api.js 65:26-81
 @ ./main.js
 @ multi babel-polyfill ./main.js

ERROR in ./server/api.js
Module not found: Error: Can't resolve '../NeteaseCloudMusicApi/router/comment_mv' in 'D:\ieaseMusic-1.0.1\server'
 @ ./server/api.js 67:23-75
 @ ./main.js
 @ multi babel-polyfill ./main.js

ERROR in ./server/api.js
Module not found: Error: Can't resolve '../NeteaseCloudMusicApi/router/comment_playlist' in 'D:\ieaseMusic-1.0.1\server'
 @ ./server/api.js 71:29-87
 @ ./main.js
 @ multi babel-polyfill ./main.js

ERROR in ./server/api.js
Module not found: Error: Can't resolve '../NeteaseCloudMusicApi/router/daily_signin' in 'D:\ieaseMusic-1.0.1\server'
 @ ./server/api.js 79:25-79
 @ ./main.js
 @ multi babel-polyfill ./main.js

ERROR in ./server/api.js
Module not found: Error: Can't resolve '../NeteaseCloudMusicApi/router/dj_catelist' in 'D:\ieaseMusic-1.0.1\server'
 @ ./server/api.js 91:24-77
 @ ./main.js
 @ multi babel-polyfill ./main.js

ERROR in ./server/api.js
Module not found: Error: Can't resolve '../NeteaseCloudMusicApi/router/dj_detail' in 'D:\ieaseMusic-1.0.1\server'
 @ ./server/api.js 82:22-73
 @ ./main.js
 @ multi babel-polyfill ./main.js

ERROR in ./server/api.js
Module not found: Error: Can't resolve '../NeteaseCloudMusicApi/router/dj_hot' in 'D:\ieaseMusic-1.0.1\server'
 @ ./server/api.js 93:19-67
 @ ./main.js
 @ multi babel-polyfill ./main.js

ERROR in ./server/api.js
Module not found: Error: Can't resolve '../NeteaseCloudMusicApi/router/dj_program' in 'D:\ieaseMusic-1.0.1\server'
 @ ./server/api.js 85:23-75
 @ ./main.js
 @ multi babel-polyfill ./main.js

ERROR in ./server/api.js
Module not found: Error: Can't resolve '../NeteaseCloudMusicApi/router/dj_program_detail' in 'D:\ieaseMusic-1.0.1\server'
 @ ./server/api.js 87:30-89
 @ ./main.js
 @ multi babel-polyfill ./main.js

ERROR in ./server/api.js
Module not found: Error: Can't resolve '../NeteaseCloudMusicApi/router/dj_recommend' in 'D:\ieaseMusic-1.0.1\server'
 @ ./server/api.js 96:25-79
 @ ./main.js
 @ multi babel-polyfill ./main.js

ERROR in ./server/api.js
Module not found: Error: Can't resolve '../NeteaseCloudMusicApi/router/dj_recommend_type' in 'D:\ieaseMusic-1.0.1\server'
 @ ./server/api.js 99:30-89
 @ ./main.js
 @ multi babel-polyfill ./main.js

ERROR in ./server/api.js
Module not found: Error: Can't resolve '../NeteaseCloudMusicApi/router/dj_sub' in 'D:\ieaseMusic-1.0.1\server'
 @ ./server/api.js 89:19-67
 @ ./main.js
 @ multi babel-polyfill ./main.js

ERROR in ./server/api.js
Module not found: Error: Can't resolve '../NeteaseCloudMusicApi/router/event' in 'D:\ieaseMusic-1.0.1\server'
 @ ./server/api.js 102:18-65
 @ ./main.js
 @ multi babel-polyfill ./main.js

ERROR in ./server/api.js
Module not found: Error: Can't resolve '../NeteaseCloudMusicApi/router/fm_trash' in 'D:\ieaseMusic-1.0.1\server'
 @ ./server/api.js 105:21-71
 @ ./main.js
 @ multi babel-polyfill ./main.js

ERROR in ./server/api.js
Module not found: Error: Can't resolve '../NeteaseCloudMusicApi/router/like' in 'D:\ieaseMusic-1.0.1\server'
 @ ./server/api.js 108:17-63
 @ ./main.js
 @ multi babel-polyfill ./main.js

ERROR in ./server/api.js
Module not found: Error: Can't resolve '../NeteaseCloudMusicApi/router/likelist' in 'D:\ieaseMusic-1.0.1\server'
 @ ./server/api.js 110:21-71
 @ ./main.js
 @ multi babel-polyfill ./main.js

ERROR in ./server/api.js
Module not found: Error: Can't resolve '../NeteaseCloudMusicApi/router/logWeb' in 'D:\ieaseMusic-1.0.1\server'
 @ ./server/api.js 119:20-68
 @ ./main.js
 @ multi babel-polyfill ./main.js

ERROR in ./server/api.js
Module not found: Error: Can't resolve '../NeteaseCloudMusicApi/router/loginCellphone' in 'D:\ieaseMusic-1.0.1\server'
 @ ./server/api.js 113:28-84
 @ ./main.js
 @ multi babel-polyfill ./main.js

ERROR in ./server/api.js
Module not found: Error: Can't resolve '../NeteaseCloudMusicApi/router/login_refresh' in 'D:\ieaseMusic-1.0.1\server'
 @ ./server/api.js 116:58-113
 @ ./main.js
 @ multi babel-polyfill ./main.js

ERROR in ./server/api.js
Module not found: Error: Can't resolve '../NeteaseCloudMusicApi/router/lyric' in 'D:\ieaseMusic-1.0.1\server'
 @ ./server/api.js 122:18-65
 @ ./main.js
 @ multi babel-polyfill ./main.js

ERROR in ./server/api.js
Module not found: Error: Can't resolve '../NeteaseCloudMusicApi/router/musicUrl' in 'D:\ieaseMusic-1.0.1\server'
 @ ./server/api.js 125:22-72
 @ ./main.js
 @ multi babel-polyfill ./main.js

ERROR in ./server/api.js
Module not found: Error: Can't resolve '../NeteaseCloudMusicApi/router/mv' in 'D:\ieaseMusic-1.0.1\server'
 @ ./server/api.js 134:15-59
 @ ./main.js
 @ multi babel-polyfill ./main.js

ERROR in ./server/api.js
Module not found: Error: Can't resolve '../NeteaseCloudMusicApi/router/mv_first' in 'D:\ieaseMusic-1.0.1\server'
 @ ./server/api.js 128:21-71
 @ ./main.js
 @ multi babel-polyfill ./main.js

ERROR in ./server/api.js
Module not found: Error: Can't resolve '../NeteaseCloudMusicApi/router/mv_url' in 'D:\ieaseMusic-1.0.1\server'
 @ ./server/api.js 131:19-67
 @ ./main.js
 @ multi babel-polyfill ./main.js

ERROR in ./server/api.js
Module not found: Error: Can't resolve '../NeteaseCloudMusicApi/router/personal_fm' in 'D:\ieaseMusic-1.0.1\server'
 @ ./server/api.js 137:24-77
 @ ./main.js
 @ multi babel-polyfill ./main.js

ERROR in ./server/api.js
Module not found: Error: Can't resolve '../NeteaseCloudMusicApi/router/personalized' in 'D:\ieaseMusic-1.0.1\server'
 @ ./server/api.js 140:25-79
 @ ./main.js
 @ multi babel-polyfill ./main.js

ERROR in ./server/api.js
Module not found: Error: Can't resolve '../NeteaseCloudMusicApi/router/personalized_djprogram' in 'D:\ieaseMusic-1.0.1\server'
 @ ./server/api.js 143:35-99
 @ ./main.js
 @ multi babel-polyfill ./main.js

ERROR in ./server/api.js
Module not found: Error: Can't resolve '../NeteaseCloudMusicApi/router/personalized_mv' in 'D:\ieaseMusic-1.0.1\server'
 @ ./server/api.js 152:28-85
 @ ./main.js
 @ multi babel-polyfill ./main.js

ERROR in ./server/api.js
Module not found: Error: Can't resolve '../NeteaseCloudMusicApi/router/personalized_newsong' in 'D:\ieaseMusic-1.0.1\server'
 @ ./server/api.js 146:33-95
 @ ./main.js
 @ multi babel-polyfill ./main.js

ERROR in ./server/api.js
Module not found: Error: Can't resolve '../NeteaseCloudMusicApi/router/personalized_privatecontent' in 'D:\ieaseMusic-1.0.1\server'
 @ ./server/api.js 149:40-109
 @ ./main.js
 @ multi babel-polyfill ./main.js

ERROR in ./server/api.js
Module not found: Error: Can't resolve '../NeteaseCloudMusicApi/router/playlist_catlist' in 'D:\ieaseMusic-1.0.1\server'
 @ ./server/api.js 162:29-87
 @ ./main.js
 @ multi babel-polyfill ./main.js

ERROR in ./server/api.js
Module not found: Error: Can't resolve '../NeteaseCloudMusicApi/router/playlist_detail' in 'D:\ieaseMusic-1.0.1\server'
 @ ./server/api.js 155:28-85
 @ ./main.js
 @ multi babel-polyfill ./main.js

ERROR in ./server/api.js
Module not found: Error: Can't resolve '../NeteaseCloudMusicApi/router/playlist_hot' in 'D:\ieaseMusic-1.0.1\server'
 @ ./server/api.js 160:25-79
 @ ./main.js
 @ multi babel-polyfill ./main.js

ERROR in ./server/api.js
Module not found: Error: Can't resolve '../NeteaseCloudMusicApi/router/playlist_tracks' in 'D:\ieaseMusic-1.0.1\server'
 @ ./server/api.js 158:28-85
 @ ./main.js
 @ multi babel-polyfill ./main.js

ERROR in ./server/api.js
Module not found: Error: Can't resolve '../NeteaseCloudMusicApi/router/program_recommend' in 'D:\ieaseMusic-1.0.1\server'
 @ ./server/api.js 165:30-89
 @ ./main.js
 @ multi babel-polyfill ./main.js

ERROR in ./server/api.js
Module not found: Error: Can't resolve '../NeteaseCloudMusicApi/router/recommend_dislike' in 'D:\ieaseMusic-1.0.1\server'
 @ ./server/api.js 174:30-89
 @ ./main.js
 @ multi babel-polyfill ./main.js

ERROR in ./server/api.js
Module not found: Error: Can't resolve '../NeteaseCloudMusicApi/router/recommend_resource' in 'D:\ieaseMusic-1.0.1\server'
 @ ./server/api.js 171:31-91
 @ ./main.js
 @ multi babel-polyfill ./main.js

ERROR in ./server/api.js
Module not found: Error: Can't resolve '../NeteaseCloudMusicApi/router/recommend_songs' in 'D:\ieaseMusic-1.0.1\server'
 @ ./server/api.js 168:28-85
 @ ./main.js
 @ multi babel-polyfill ./main.js

ERROR in ./server/api.js
Module not found: Error: Can't resolve '../NeteaseCloudMusicApi/router/resource_like' in 'D:\ieaseMusic-1.0.1\server'
 @ ./server/api.js 176:26-81
 @ ./main.js
 @ multi babel-polyfill ./main.js

ERROR in ./server/api.js
Module not found: Error: Can't resolve '../NeteaseCloudMusicApi/router/search' in 'D:\ieaseMusic-1.0.1\server'
 @ ./server/api.js 179:19-67
 @ ./main.js
 @ multi babel-polyfill ./main.js

ERROR in ./server/api.js
Module not found: Error: Can't resolve '../NeteaseCloudMusicApi/router/search_multimatch' in 'D:\ieaseMusic-1.0.1\server'
 @ ./server/api.js 182:30-89
 @ ./main.js
 @ multi babel-polyfill ./main.js

ERROR in ./server/api.js
Module not found: Error: Can't resolve '../NeteaseCloudMusicApi/router/search_suggest' in 'D:\ieaseMusic-1.0.1\server'
 @ ./server/api.js 185:27-83
 @ ./main.js
 @ multi babel-polyfill ./main.js

ERROR in ./server/api.js
Module not found: Error: Can't resolve '../NeteaseCloudMusicApi/router/simi_artists' in 'D:\ieaseMusic-1.0.1\server'
 @ ./server/api.js 200:24-78
 @ ./main.js
 @ multi babel-polyfill ./main.js

ERROR in ./server/api.js
Module not found: Error: Can't resolve '../NeteaseCloudMusicApi/router/simi_mv' in 'D:\ieaseMusic-1.0.1\server'
 @ ./server/api.js 194:20-69
 @ ./main.js
 @ multi babel-polyfill ./main.js

ERROR in ./server/api.js
Module not found: Error: Can't resolve '../NeteaseCloudMusicApi/router/simi_playlist' in 'D:\ieaseMusic-1.0.1\server'
 @ ./server/api.js 188:26-81
 @ ./main.js
 @ multi babel-polyfill ./main.js

ERROR in ./server/api.js
Module not found: Error: Can't resolve '../NeteaseCloudMusicApi/router/simi_song' in 'D:\ieaseMusic-1.0.1\server'
 @ ./server/api.js 191:22-73
 @ ./main.js
 @ multi babel-polyfill ./main.js

ERROR in ./server/api.js
Module not found: Error: Can't resolve '../NeteaseCloudMusicApi/router/simi_user' in 'D:\ieaseMusic-1.0.1\server'
 @ ./server/api.js 197:22-73
 @ ./main.js
 @ multi babel-polyfill ./main.js

ERROR in ./server/api.js
Module not found: Error: Can't resolve '../NeteaseCloudMusicApi/router/song_detail' in 'D:\ieaseMusic-1.0.1\server'
 @ ./server/api.js 203:24-77
 @ ./main.js
 @ multi babel-polyfill ./main.js

ERROR in ./server/api.js
Module not found: Error: Can't resolve '../NeteaseCloudMusicApi/router/top_album' in 'D:\ieaseMusic-1.0.1\server'
 @ ./server/api.js 206:22-73
 @ ./main.js
 @ multi babel-polyfill ./main.js

ERROR in ./server/api.js
Module not found: Error: Can't resolve '../NeteaseCloudMusicApi/router/top_artists' in 'D:\ieaseMusic-1.0.1\server'
 @ ./server/api.js 209:24-77
 @ ./main.js
 @ multi babel-polyfill ./main.js

ERROR in ./server/api.js
Module not found: Error: Can't resolve '../NeteaseCloudMusicApi/router/top_list' in 'D:\ieaseMusic-1.0.1\server'
 @ ./server/api.js 211:21-71
 @ ./main.js
 @ multi babel-polyfill ./main.js

ERROR in ./server/api.js
Module not found: Error: Can't resolve '../NeteaseCloudMusicApi/router/top_mv' in 'D:\ieaseMusic-1.0.1\server'
 @ ./server/api.js 213:19-67
 @ ./main.js
 @ multi babel-polyfill ./main.js

ERROR in ./server/api.js
Module not found: Error: Can't resolve '../NeteaseCloudMusicApi/router/top_playlist' in 'D:\ieaseMusic-1.0.1\server'
 @ ./server/api.js 216:25-79
 @ ./main.js
 @ multi babel-polyfill ./main.js

ERROR in ./server/api.js
Module not found: Error: Can't resolve '../NeteaseCloudMusicApi/router/top_playlist_highquality' in 'D:\ieaseMusic-1.0.1\server'
 @ ./server/api.js 219:37-103
 @ ./main.js
 @ multi babel-polyfill ./main.js

ERROR in ./server/api.js
Module not found: Error: Can't resolve '../NeteaseCloudMusicApi/router/top_songs' in 'D:\ieaseMusic-1.0.1\server'
 @ ./server/api.js 221:21-72
 @ ./main.js
 @ multi babel-polyfill ./main.js

ERROR in ./server/api.js
Module not found: Error: Can't resolve '../NeteaseCloudMusicApi/router/toplist' in 'D:\ieaseMusic-1.0.1\server'
 @ ./server/api.js 223:20-69
 @ ./main.js
 @ multi babel-polyfill ./main.js

ERROR in ./server/api.js
Module not found: Error: Can't resolve '../NeteaseCloudMusicApi/router/toplist_artist' in 'D:\ieaseMusic-1.0.1\server'
 @ ./server/api.js 225:27-83
 @ ./main.js
 @ multi babel-polyfill ./main.js

ERROR in ./server/api.js
Module not found: Error: Can't resolve '../NeteaseCloudMusicApi/router/toplist_detail' in 'D:\ieaseMusic-1.0.1\server'
 @ ./server/api.js 227:27-83
 @ ./main.js
 @ multi babel-polyfill ./main.js

ERROR in ./server/api.js
Module not found: Error: Can't resolve '../NeteaseCloudMusicApi/router/user_audio' in 'D:\ieaseMusic-1.0.1\server'
 @ ./server/api.js 233:23-75
 @ ./main.js
 @ multi babel-polyfill ./main.js

ERROR in ./server/api.js
Module not found: Error: Can't resolve '../NeteaseCloudMusicApi/router/user_cloud' in 'D:\ieaseMusic-1.0.1\server'
 @ ./server/api.js 236:23-75
 @ ./main.js
 @ multi babel-polyfill ./main.js

ERROR in ./server/api.js
Module not found: Error: Can't resolve '../NeteaseCloudMusicApi/router/user_cloud_search' in 'D:\ieaseMusic-1.0.1\server'
 @ ./server/api.js 239:30-89
 @ ./main.js
 @ multi babel-polyfill ./main.js

ERROR in ./server/api.js
Module not found: Error: Can't resolve '../NeteaseCloudMusicApi/router/user_detail' in 'D:\ieaseMusic-1.0.1\server'
 @ ./server/api.js 244:24-77
 @ ./main.js
 @ multi babel-polyfill ./main.js

ERROR in ./server/api.js
Module not found: Error: Can't resolve '../NeteaseCloudMusicApi/router/user_dj' in 'D:\ieaseMusic-1.0.1\server'
 @ ./server/api.js 246:20-69
 @ ./main.js
 @ multi babel-polyfill ./main.js

ERROR in ./server/api.js
Module not found: Error: Can't resolve '../NeteaseCloudMusicApi/router/user_event' in 'D:\ieaseMusic-1.0.1\server'
 @ ./server/api.js 242:23-75
 @ ./main.js
 @ multi babel-polyfill ./main.js

ERROR in ./server/api.js
Module not found: Error: Can't resolve '../NeteaseCloudMusicApi/router/user_followeds' in 'D:\ieaseMusic-1.0.1\server'
 @ ./server/api.js 248:27-83
 @ ./main.js
 @ multi babel-polyfill ./main.js

ERROR in ./server/api.js
Module not found: Error: Can't resolve '../NeteaseCloudMusicApi/router/user_follows' in 'D:\ieaseMusic-1.0.1\server'
 @ ./server/api.js 250:25-79
 @ ./main.js
 @ multi babel-polyfill ./main.js

ERROR in ./server/api.js
Module not found: Error: Can't resolve '../NeteaseCloudMusicApi/router/user_playlist' in 'D:\ieaseMusic-1.0.1\server'
 @ ./server/api.js 230:26-81
 @ ./main.js
 @ multi babel-polyfill ./main.js

ERROR in ./server/api.js
Module not found: Error: Can't resolve '../NeteaseCloudMusicApi/router/user_playrecord' in 'D:\ieaseMusic-1.0.1\server'
 @ ./server/api.js 254:24-81
 @ ./main.js
 @ multi babel-polyfill ./main.js

ERROR in ./server/api.js
Module not found: Error: Can't resolve '../NeteaseCloudMusicApi/router/user_subcount' in 'D:\ieaseMusic-1.0.1\server'
 @ ./server/api.js 252:26-81
 @ ./main.js
 @ multi babel-polyfill ./main.js

npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "build-main"
npm ERR! node v6.11.5
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! iease-music@1.0.1 build-main: `cross-env NODE_ENV=production node -r babel-register ./node_modules/webpack/bin/webpack --config ./config/webpack.config.electron.js --progress --profile --colors`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the iease-music@1.0.1 build-main script 'cross-env NODE_ENV=production node -r babel-register ./node_modules/webpack/bin/webpack --config ./config/webpack.config.electron.js --progress --profile --colors'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the iease-music package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     cross-env NODE_ENV=production node -r babel-register ./node_modules/webpack/bin/webpack --config ./config/webpack.config.electron.js --progress --profile --colors
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs iease-music
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls iease-music
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     D:\ieaseMusic-1.0.1\npm-debug.log

npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "build"
npm ERR! node v6.11.5
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! iease-music@1.0.1 build: `rm -rf dist && npm run build-main && npm run build-renderer`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the iease-music@1.0.1 build script 'rm -rf dist && npm run build-main && npm run build-renderer'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the iease-music package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     rm -rf dist && npm run build-main && npm run build-renderer
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs iease-music
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls iease-music
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     D:\ieaseMusic-1.0.1\npm-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! iease-music@1.0.1 package-win: `npm run build && rm -rf release && build --win --ia32 --projectDir ./dist`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the iease-music@1.0.1 package-win script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\*\npm-cache\_logs\2017-10-28T11_53_43_490Z-debug.log

@trazyn
Copy link
Owner

trazyn commented Oct 29, 2017

@airectx 缺少字模块,readme上有写

git submodule init
git submodule update

@hellozhaoming
Copy link

@airectx 你的错误提示是“Module not found: Error: Can't resolve '../../NeteaseCloudMusicApi/.."
检查 /NeteaseCloudMusicApi/ 文件夹是不是空的,如果是空的,说明没有子模块。
按照楼上大神的方法更新子模块。
或者自己去下载NeteaseCloudMusicApi的代码解压到该文件夹

@airectx
Copy link

airectx commented Oct 30, 2017

@trazyn @hellozhaoming 了解了,感谢打醒!

@Acris
Copy link

Acris commented Oct 30, 2017

Fork了作者的仓库,然后针对Windows做了一点点小改动:

- 默认无边框;
- 由于没了标题栏,故加入了一个关闭按钮;
- 顶部加了一个可以拖动的区域,在中央位置;
- 默认使用思源黑体或微软雅黑字体

有需要的Windows用户可以clone我的仓库再打包成exe使用:https://github.com/Acris/ieaseMusic
或者直接在Release页面下载exe文件。

上几张Windows上的效果图:
1.png
2.png
3.png

@trazyn
Copy link
Owner

trazyn commented Oct 30, 2017

@Acris Good job! 字体感觉有点丑

@MrCloudyGod
Copy link

@Acris 桌面壁纸妹子好看!求原图!另外打包的这个win版好像快捷键都失效了?我找不到调音量的……

@TragicLifeHu
Copy link

@Acris 支持!可惜我不会编程,我现在一点更要开始学了

@WangLeto
Copy link

@20171213
Copy link

。咱也試著自己打了個包進行了一些簡單的修改:

  • 谷歌換換中科大源
  • 用思源替換了部分可能出現中文的地方
  • 更新NeteaseCloudMusicApi到3.15版本,支持了歌詞載入

有時間改成無邊框+右上角按鈕。

提取碼:k8wy

感谢带佬!

@arixse
Copy link

arixse commented Jul 31, 2019

@startewho 应该是 -webkit-app: drag 属性在windows下被忽略

如何解决这个问题呢?

@kaaass
Copy link

kaaass commented Aug 2, 2019

咱也试着自己打了个包。进行了一些简单的修改:

  • Google Font 换中科大源
  • 用思源替换了部分可能出现中文的地方
  • 更新 NeteaseCloudMusicApi 到 3.15 版本,支持了歌词载入

有时间改成无边框 + 右上角按钮。
提取码: k8wy

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

大佬,npm install时出现这个不用管么?

还有就是为什么我自己打包以后打开会卡在这个界面?
lag

大佬当时时怎么打包的呢?做了哪些修改?

然后无边框怎么改,没办法我太菜了= =
@kaaass

  1. 那个不用管,是mac下用的。
  2. 卡在这个界面原因其实挺多的……先检查下网易云接口的子模块是不是没有update,如果还是卡那就右键托盘图标启动下调试工具看看详细错误。当然也有可能是访问太多被网易盯上了XD
  3. 我的修改就只有我提到的地方。
  4. 无边框的话就是在窗口创建的时候加一个frame: false。可以参考Electron官方文档

@kaaass
Copy link

kaaass commented Aug 2, 2019

  1. 那个不用管,是 mac 下用的。
  2. 卡在这个界面原因其实挺多的…… 先检查下网易云接口的子模块是不是没有 update,如果还是卡那就右键托盘图标启动下调试工具看看详细错误。当然也有可能是访问太多被网易盯上了 XD
  3. 我的修改就只有我提到的地方。
  4. 无边框的话就是在窗口创建的时候加一个 frame: false。可以参考 Electron 官方文档

无边框我自己弄好了
应用目录下main.js
476行开始

    mainWindow = new BrowserWindow({
        x: mainWindowState.x,
        y: mainWindowState.y,
        show: false,
        width: 800,
        height: 520,
        resizable: false,
        maximizable: false,
        fullscreenable: false,
        backgroundColor: 'none',
        titleBarStyle: 'hiddenInset',
        frame: false
    });

原本没有frame: false,加一个frame: false就好了,但是看网上说可能会导致无法响应单击事件。
我也不清楚,毕竟我现在依然卡在这。。。
lag1

但是你打包的就可以,大概是api版本问题,我再试试。
sc2

还有一个问题,无论是你打包的版本还是我自己打包的,都没有托盘图标。。。关掉以后都会卡在后台,要用任务管理器自行结束进程= =

@kaaass

托盘图标是默认关闭的。右击主界面打开“Show menu bar icon”。

无边框问题其实挺大的,由于目前整个界面都是有自定义菜单的,于是有些平台下拖动区域就会很魔性。而且win10的边框反正也很窄,所以我就咕咕咕了2333

@kaaass
Copy link

kaaass commented Aug 2, 2019

  1. 那个不用管,是 mac 下用的。
  2. 卡在这个界面原因其实挺多的…… 先检查下网易云接口的子模块是不是没有 update,如果还是卡那就右键托盘图标启动下调试工具看看详细错误。当然也有可能是访问太多被网易盯上了 XD
  3. 我的修改就只有我提到的地方。
  4. 无边框的话就是在窗口创建的时候加一个 frame: false。可以参考 Electron 官方文档

无边框我自己弄好了
应用目录下 main.js
476 行开始

    mainWindow = new BrowserWindow({
        x: mainWindowState.x,
        y: mainWindowState.y,
        show: false,
        width: 800,
        height: 520,
        resizable: false,
        maximizable: false,
        fullscreenable: false,
        backgroundColor: 'none',
        titleBarStyle: 'hiddenInset',
        frame: false
    });

原本没有 frame: false,加一个 frame: false 就好了,但是看网上说可能会导致无法响应单击事件。
我也不清楚,毕竟我现在依然卡在这。。。
lag1
但是你打包的就可以,大概是 api 版本问题,我再试试。
sc2
还有一个问题,无论是你打包的版本还是我自己打包的,都没有托盘图标。。。关掉以后都会卡在后台,要用任务管理器自行结束进程 = =
@kaaass

托盘图标是默认关闭的。右击主界面打开 “Show menu bar icon”。
无边框问题其实挺大的,由于目前整个界面都是有自定义菜单的,于是有些平台下拖动区域就会很魔性。而且 win10 的边框反正也很窄,所以我就咕咕咕了 2333

更新api以后,已经不会卡在那了,也无边框了,但是无法操作是真的。
继续修改XD

加油w
修改成功恬不知耻的要份patch 2333

@kaaass
Copy link

kaaass commented Aug 2, 2019

字体黑框解决了,但是我不知道该改成什么。如果背景直接透明可能会在某些情况下字会看不清。
img1

这样怎么样?
img2

@kaaass

这个字体有点辣眼睛,考虑下换思源之类的?

我没有修改特别多的界面元素,我觉得原来的不透明也行,这个主要还是个人审美取向吧。

@kaaass
Copy link

kaaass commented Aug 2, 2019

emmmmmmm怎么换字体,以及他的css好多我没找到
可能藏js里了。

src/js/pages下的若干classes.js。

你说的是思源黑体还是?

嗯。我打包的版本是用这个替换的。

@kaaass
Copy link

kaaass commented Aug 2, 2019

字体是那个ieaseMusic\node_modules\ionicons201\fonts\ionicons.ttf

问题是我不会换啊= =
之前没怎么接触过这方面。。

font-family。global.css的body也相关。大部分字体是HelveticaNeue-UltraLight和Roboto。这个接触点css、electron开发之类的可能会简单点。

由于目前啊font-family设置,所以win下汉字大概是宋体之类的。看设置mac下大概是苹方之类的吧。

另外,issue里的comment其实可以编辑的。感觉之前发的关reference就好长2333

@de-conf
Copy link

de-conf commented Aug 13, 2019

请问下,为啥我每次手动编译都会卡在这儿

 • installing production dependencies platform=linux arch=x64 appDir=/home/albert/build/ieaseMusic/dist
  • packaging       platform=linux arch=x64 electron=4.0.1 appOutDir=release/linux-unpacked
  • cannot unpack electron zip file, will be re-downloaded  error=zip: not a valid zip file
  • downloading     parts=8 size=75 MB url=https://github.com/electron/electron/releases/download/v4.0.1/electron-v4.0.1-linux-x64.zip

@de-conf
Copy link

de-conf commented Aug 13, 2019

请问下,为啥我每次手动编译都会卡在这儿

 • installing production dependencies platform=linux arch=x64 appDir=/home/albert/build/ieaseMusic/dist
  • packaging       platform=linux arch=x64 electron=4.0.1 appOutDir=release/linux-unpacked
  • cannot unpack electron zip file, will be re-downloaded  error=zip: not a valid zip file
  • downloading     parts=8 size=75 MB url=https://github.com/electron/electron/releases/download/v4.0.1/electron-v4.0.1-linux-x64.zip

找到问题了,
rm -rf ~/.cache/electron
但是之后还是编译不过去,我是不是还得装rpm rpm-build dpkg 等软件,我又怕和我的包管冲突,大佬们是咋打包的啊?(Linux

@ghost
Copy link

ghost commented Aug 27, 2019

有windows版吗?我是小白,求发

@jyuan15
Copy link

jyuan15 commented Nov 15, 2019

windows版没有调音量的按钮怎么办?

@limbia
Copy link

limbia commented Apr 30, 2020

这个nice,但关掉杀不了后台,要手动杀

@famei
Copy link

famei commented Jun 6, 2021

咱也跟着自己打了个包。进行了一些简单的修改:

  • 谷歌字体换中科大源
  • 用思源替换了部分可能出现的地方
  • 更新网易CloudMusicApi到3.15版本,支持了歌词载入

有时间改成无边框+按钮按钮。

提取码:k8wy

大佬 链接失效了

@kaaass
Copy link

kaaass commented Jun 7, 2021

咱也跟着自己打了个包。进行了一些简单的修改:

  • 谷歌字体换中科大源
  • 用思源替换了部分可能出现的地方
  • 更新网易CloudMusicApi到3.15版本,支持了歌词载入

有时间改成无边框+按钮按钮。
提取码:k8wy

大佬 链接失效了

我试了下,好像没有失效?
姑且再创建了一个:提取码: sdus。不过那个版本也经过两年了,不知道还好不好使。

@gghh2007
Copy link

gghh2007 commented Feb 6, 2022

咱也跟着自己打了个包。进行了一些简单的修改:

  • 谷歌字体换中科大源
  • 用思源替换了部分可能出现的地方
  • 更新网易CloudMusicApi到3.15版本,支持了歌词载入

有时间改成无边框+按钮按钮。
提取码:k8wy

大佬 链接失效了

我试了下,好像没有失效? 姑且再创建了一个:提取码: sdus。不过那个版本也经过两年了,不知道还好不好使。
大佬新年快乐,麻烦你更新一下呗

@ghost ghost deleted a comment Jun 3, 2022
@ghost ghost deleted a comment Jun 3, 2022
@ghost ghost deleted a comment Jun 3, 2022
@ghost ghost deleted a comment Jun 3, 2022
@ghost ghost deleted a comment Jun 3, 2022
@ghost ghost deleted a comment Jun 3, 2022
@ghost ghost deleted a comment Jun 3, 2022
@ghost ghost deleted a comment Jun 3, 2022
@ghost ghost deleted a comment Jun 3, 2022
@ghost ghost deleted a comment Jun 3, 2022
@ghost ghost deleted a comment Jun 3, 2022
@ghost ghost deleted a comment Jun 3, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests