File tree Expand file tree Collapse file tree 6 files changed +486
-179
lines changed Expand file tree Collapse file tree 6 files changed +486
-179
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ RUN yarn config set electron_mirror https://npmmirror.com/mirrors/electron/ && \
88 yarn config set registry https://registry.npmmirror.com && \
99 sed -i 's/registry.yarnpkg.com/registry.npmmirror.com/g' yarn.lock && \
1010 sed -i 's/registry.npmjs.org/registry.npmmirror.com/g' yarn.lock && \
11- yarn install
11+ yarn install
1212COPY . .
1313RUN yarn build
1414
@@ -19,10 +19,10 @@ COPY --from=build /app/package.json /usr/local/lib/
1919RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/repositories \
2020 && apk add --no-cache libuv nodejs npm \
2121 && npm config set registry https://registry.npmmirror.com \
22- && npm i -g $(awk -F \" '{if($2=="NeteaseCloudMusicApi ") print $2"@"$4}' /usr/local/lib/package.json) \
22+ && npm i -g $(awk -F \" '{if($2=="@neteaseapireborn/api@latest ") print $2"@"$4}' /usr/local/lib/package.json) \
2323 && rm -f /usr/local/lib/package.json
2424
2525COPY --from=build /app/docker/nginx.conf.example /etc/nginx/conf.d/default.conf
2626COPY --from=build /app/dist /usr/share/nginx/html
2727
28- CMD ["sh" , "-c" , "nginx && exec npx NeteaseCloudMusicApi " ]
28+ CMD ["sh" , "-c" , "nginx && exec npx @neteaseapireborn/api@latest " ]
Original file line number Diff line number Diff line change 1010# 安装
1111if [[ ! -d api ]]; then
1212 mkdir api
13- git clone https://github.com/Binaryify/NeteaseCloudMusicApi ./api && \
13+ git clone https://github.com/neteasecloudmusicapienhanced/api-enhanced.git ./api && \
1414 cd api && npm install && cd ..
1515fi
1616
Original file line number Diff line number Diff line change 1919 "postinstall" : " electron-builder install-app-deps" ,
2020 "postuninstall" : " electron-builder install-app-deps" ,
2121 "prettier" : " npx prettier --write ./src" ,
22- "netease_api:run" : " npx NeteaseCloudMusicApi "
22+ "netease_api:run" : " npx @neteaseapireborn/api "
2323 },
2424 "main" : " background.js" ,
2525 "engines" : {
2626 "node" : " 14 || 16"
2727 },
2828 "dependencies" : {
29+ "@neteaseapireborn/api" : " ^4.29.7" ,
2930 "@unblockneteasemusic/rust-napi" : " ^0.4.0" ,
30- "NeteaseCloudMusicApi" : " ^4.23.3" ,
3131 "axios" : " ^0.26.1" ,
3232 "change-case" : " ^4.1.2" ,
3333 "cli-color" : " ^2.0.0" ,
Original file line number Diff line number Diff line change 11import clc from 'cli-color' ;
22import checkAuthToken from '../utils/checkAuthToken' ;
3- import server from 'NeteaseCloudMusicApi /server' ;
3+ import server from '@neteaseapireborn/api /server' ;
44
55export async function startNeteaseMusicApi ( ) {
66 // Let user know that the service is starting
You can’t perform that action at this time.
0 commit comments