Coder Social home page Coder Social logo

ieasemusic's Introduction

ieaseMusic

Built by Electron, React, Recoil, Less, TypeScript

screenshots

PREVIEW

Feature

Issue

  • 🐛 非常多,会慢慢完善

Starting Development

Start the app in the dev environment. This starts the renderer process in hot-module-replacement mode and starts a dev server that sends hot updates to the renderer process:

$ yarn install && yarn dev

Packaging for Production

To package apps for the local platform:

$ yarn build

参考列表

ieasemusic's People

Contributors

daihy8759 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

ieasemusic's Issues

bug

没有中文吗?会有个bug,登录后会空白页面
image

小白求mac版

可不可以发布安装包,小白实在看不懂。。。😭

打包问题

请问如何打包呢?能否多加一点说明呢?

依赖版本不匹配

react 17 版本与 recoilize版本不匹配产生冲突,切换至react 16后开发环境下运行有大量组件没法有效加载

PS E:\netease music\ieaseMusic-master-fork-by-daihy8759> npm install
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: [email protected]
npm WARN Found: [email protected]
npm WARN node_modules/react
npm WARN react@"^17.0.2" from the root project
npm WARN 14 more (@material-ui/core, @material-ui/icons, ...)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer react@"^16.14.0" from [email protected]
npm WARN node_modules/react-dom
npm WARN react-dom@"^17.0.2" from the root project
npm WARN 9 more (@material-ui/core, @material-ui/icons, ...)
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: [email protected]
npm WARN Found: [email protected]
npm WARN node_modules/react
npm WARN react@"^17.0.2" from the root project
npm WARN 14 more (@material-ui/core, @material-ui/icons, ...)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer react@"^16.14.0" from [email protected]
npm WARN node_modules/react-dom
npm WARN react-dom@"^17.0.2" from the root project
npm WARN 9 more (@material-ui/core, @material-ui/icons, ...)
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: [email protected]
npm WARN Found: [email protected]
npm WARN node_modules/react
npm WARN react@"^17.0.2" from the root project
npm WARN 14 more (@material-ui/core, @material-ui/icons, ...)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer react@"^16.14.0" from [email protected]
npm WARN node_modules/react-dom
npm WARN react-dom@"^17.0.2" from the root project
npm WARN 9 more (@material-ui/core, @material-ui/icons, ...)
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: [email protected]
npm WARN Found: [email protected]
npm WARN node_modules/react
npm WARN react@"^17.0.2" from the root project
npm WARN 14 more (@material-ui/core, @material-ui/icons, ...)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer react@"^16.14.0" from [email protected]
npm WARN node_modules/react-dom
npm WARN react-dom@"^17.0.2" from the root project
npm WARN 9 more (@material-ui/core, @material-ui/icons, ...)
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: [email protected]
npm WARN Found: [email protected]
npm WARN node_modules/react
npm WARN react@"^17.0.2" from the root project
npm WARN 14 more (@material-ui/core, @material-ui/icons, ...)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer react@"^16.13.1" from [email protected]
npm WARN node_modules/recoilize
npm WARN dev recoilize@"^3.1.6" from the root project
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: [email protected]
npm WARN Found: [email protected]
npm WARN react-dom@"^17.0.2" from the root project
npm WARN 9 more (@material-ui/core, @material-ui/icons, ...)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer react-dom@"^16.13.1" from [email protected]
npm WARN node_modules/recoilize
npm WARN dev recoilize@"^3.1.6" from the root project

image

[请求] 更新 electron 依赖版本到 16.2.2

16.2.2 是 electron16 的最后一个稳定版,Arch Linux 的 electron16 软件包中的 electron 也是这个版本。程序的 electron 依赖版本更新至这个版本之后可以实现将程序的资源单独提取出来,让所有的 electron 应用共享系统的 electron,从而节省程序 electron 部分的大量空间占用。目前的 16.0.2 的 electron 作为依赖后构建出的资源文件 app.asar 无法使用 16.2.2 的 electron 加载。

无法播放歌曲

一直处于加载的状态,Network窗口只能看到jpg能全部加载出来,主窗口一直是UNKNOW KBPS
image

支持下,linux日用生态丰富靠你了

本来脑子一热想找个API自己做个,没想到已经有人在搞了,来支持下。官方的linux版本实在没法用,因为接口变动有很多功能都不能用了

Build失败

RAW

imac:ieasemusic lawrencelaw$ yarn install
yarn install v1.22.4
[1/4] 🔍 Resolving packages...
success Already up-to-date.
✨ Done in 1.01s.

imac:ieasemusic lawrencelaw$ yarn build
yarn run v1.22.4
$ npm run clean && npm run build-all && electron-builder
npm WARN lifecycle The node binary used for scripts is /var/folders/8f/7vs415913qv8dy0845_kbj2c0000gp/T/yarn--1590326002034-0.7223147133295764/node but npm is using /usr/local/Cellar/node/14.3.0/bin/node itself. Use the --scripts-prepend-node-path option to include the path for the node binary npm was executed with.

[email protected] clean /Users/lawrencelaw/ieaseMusic
rimraf dist && rimraf build

npm WARN lifecycle The node binary used for scripts is /var/folders/8f/7vs415913qv8dy0845_kbj2c0000gp/T/yarn--1590326002034-0.7223147133295764/node but npm is using /usr/local/Cellar/node/14.3.0/bin/node itself. Use the --scripts-prepend-node-path option to include the path for the node binary npm was executed with.

[email protected] build-all /Users/lawrencelaw/ieaseMusic
npm run build-main && npm run build-renderer

npm WARN lifecycle The node binary used for scripts is /var/folders/8f/7vs415913qv8dy0845_kbj2c0000gp/T/yarn--1590326002034-0.7223147133295764/node but npm is using /usr/local/Cellar/node/14.3.0/bin/node itself. Use the --scripts-prepend-node-path option to include the path for the node binary npm was executed with.

[email protected] build-main /Users/lawrencelaw/ieaseMusic
webpack --config webpack/webpack.main.prod.config.js

Hash: a377ebe8e4acf1199256
Version: webpack 4.43.0
Time: 1590ms
Built at: 05/24/2020 9:13:26 PM
Asset Size Chunks Chunk Names
main.js 623 KiB 0 [emitted] main
Entrypoint main = main.js
[0] external "electron" 42 bytes {0} [built]
[1] external "path" 42 bytes {0} [built]
[2] external "fs" 42 bytes {0} [built]
[3] external "util" 42 bytes {0} [built]
[4] external "assert" 42 bytes {0} [built]
[6] (webpack)/buildin/harmony-module.js 573 bytes {0} [built]
[8] external "events" 42 bytes {0} [built]
[21] external "os" 42 bytes {0} [built]
[33] external "url" 42 bytes {0} [built]
[34] ./src/main/ipcMainSets.ts 3.17 KiB {0} [built]
[36] ./src/shared/storage.ts 988 bytes {0} [built]
[38] ./src/main/index.ts 7.84 KiB {0} [built]
[51] external "child_process" 42 bytes {0} [built]
[54] external "https" 42 bytes {0} [built]
[69] external "tty" 42 bytes {0} [built]
+ 112 hidden modules
npm WARN lifecycle The node binary used for scripts is /var/folders/8f/7vs415913qv8dy0845_kbj2c0000gp/T/yarn--1590326002034-0.7223147133295764/node but npm is using /usr/local/Cellar/node/14.3.0/bin/node itself. Use the --scripts-prepend-node-path option to include the path for the node binary npm was executed with.

[email protected] build-renderer /Users/lawrencelaw/ieaseMusic
webpack --config webpack/webpack.renderer.prod.config.js

Warning: React version not specified in eslint-plugin-react settings. See https://github.com/yannickcr/eslint-plugin-react#configuration .
Hash: b31e37e9dd269c997a33
Version: webpack 4.43.0
Time: 23817ms
Built at: 05/24/2020 9:13:51 PM
19 assets
Entrypoint app = vendor.8c7951b8dae59faa8e86.chunk.js app.f41d85dbeebac4bac34b.js
[3] (webpack)/buildin/harmony-module.js 573 bytes {0} [built]
[8] ./node_modules/@material-ui/core/esm/styles/withStyles.js + 1 modules 4.71 KiB {0} [built]
| 2 modules
[10] external "electron" 42 bytes {2} [built]
[11] ./src/renderer/stores/controller.ts 11.6 KiB {2} [built]
[12] ./src/renderer/context.tsx 1.65 KiB {2} [built]
[15] ./node_modules/react-router/esm/react-router.js + 1 modules 29.9 KiB {0} [built]
| 2 modules
[41] ./node_modules/history/esm/history.js + 2 modules 30.6 KiB {0} [built]
| 3 modules
[47] ./src/renderer/utils/lastfm.ts 4.97 KiB {2} [built]
[49] ./src/renderer/stores/upnext.ts 3.84 KiB {2} [built]
[77] ./src/renderer/stores/preferences.ts 21.1 KiB {2} [built]
[192] ./src/renderer/App.tsx 7.43 KiB {2} [built]
[202] ./src/renderer/stores/index.ts 1.51 KiB {2} [built]
[235] ./src/renderer/routes/index.tsx 5.42 KiB {2} [built]
[273] ./src/renderer/index.tsx 426 bytes {2} [built]
[351] ./src/renderer/App.less 587 bytes {2} [built]
+ 622 hidden modules

WARNING in ./src/renderer/components/Header/index.tsx
Module Warning (from ./node_modules/eslint-loader/index.js):

/Users/lawrencelaw/ieaseMusic/src/renderer/components/Header/index.tsx
18:31 warning 'playing' is assigned a value but never used @typescript-eslint/no-unused-vars

✖ 1 problem (0 errors, 1 warning)

@ ./src/renderer/views/FM/index.tsx 24:0-39 130:38-44
@ ./src/renderer/routes/index.tsx
@ ./src/renderer/App.tsx
@ ./src/renderer/index.tsx

WARNING in ./src/renderer/views/FM/index.tsx
Module Warning (from ./node_modules/eslint-loader/index.js):

/Users/lawrencelaw/ieaseMusic/src/renderer/views/FM/index.tsx
172:42 warning '_' is defined but never used @typescript-eslint/no-unused-vars

✖ 1 problem (0 errors, 1 warning)

@ ./src/renderer/routes/index.tsx 30:28-49
@ ./src/renderer/App.tsx
@ ./src/renderer/index.tsx

ERROR in ./src/renderer/views/Search/index.tsx
Module Error (from ./node_modules/eslint-loader/index.js):

/Users/lawrencelaw/ieaseMusic/src/renderer/views/Search/index.tsx
70:25 error Unexpected empty arrow function @typescript-eslint/no-empty-function

✖ 1 problem (1 error, 0 warnings)

@ ./src/renderer/routes/index.tsx 29:32-57
@ ./src/renderer/App.tsx
@ ./src/renderer/index.tsx
Child html-webpack-plugin for "index.html":
1 asset
Entrypoint undefined = index.html
[0] ./node_modules/html-webpack-plugin/lib/loader.js!./src/renderer/index.html 380 bytes {0} [built]
[2] (webpack)/buildin/module.js 497 bytes {0} [built]
+ 1 hidden module
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] build-renderer: webpack --config webpack/webpack.renderer.prod.config.js
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] build-renderer 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! /Users/lawrencelaw/.npm/_logs/2020-05-24T13_13_51_981Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] build-all: npm run build-main && npm run build-renderer
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] build-all 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! /Users/lawrencelaw/.npm/_logs/2020-05-24T13_13_52_069Z-debug.log
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

以下是log

0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli '/usr/local/Cellar/node/14.3.0/bin/node',
1 verbose cli '/usr/local/bin/npm',
1 verbose cli 'run',
1 verbose cli 'build-all'
1 verbose cli ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prebuild-all', 'build-all', 'postbuild-all' ]
5 info lifecycle [email protected]prebuild-all: [email protected]
6 info lifecycle [email protected]
build-all: [email protected]
7 warn lifecycle The node binary used for scripts is /var/folders/8f/7vs415913qv8dy0845_kbj2c0000gp/T/yarn--1590326002034-0.7223147133295764/node but npm is using /usr/local/Cellar/node/14.3.0/bin/node itself. Use the --scripts-prepend-node-path option to include the path for the node binary npm was executed with.
8 verbose lifecycle [email protected]build-all: unsafe-perm in lifecycle true
9 verbose lifecycle [email protected]
build-all: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/lawrencelaw/ieaseMusic/node_modules/.bin:/var/folders/8f/7vs415913qv8dy0845_kbj2c0000gp/T/yarn--1590326002034-0.7223147133295764:/Users/lawrencelaw/ieaseMusic/node_modules/.bin:/Users/lawrencelaw/.config/yarn/link/node_modules/.bin:/usr/local/Cellar/node/14.3.0/libexec/lib/node_modules/npm/bin/node-gyp-bin:/usr/local/Cellar/node/14.3.0/lib/node_modules/npm/bin/node-gyp-bin:/usr/local/Cellar/node/14.3.0/bin/node_modules/npm/bin/node-gyp-bin:/Library/Frameworks/Python.framework/Versions/3.6/bin:/Library/Frameworks/Python.framework/Versions/3.5/bin:/Library/Frameworks/Python.framework/Versions/3.5/bin:/Library/Frameworks/Python.framework/Versions/3.6/bin:/Library/Frameworks/Python.framework/Versions/3.5/bin:/Library/Frameworks/Python.framework/Versions/3.6/bin:/Library/Frameworks/Python.framework/Versions/3.6/bin:/Library/Frameworks/Python.framework/Versions/3.5/bin:/Library/Frameworks/Python.framework/Versions/3.6/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/aria2/bin
10 verbose lifecycle [email protected]build-all: CWD: /Users/lawrencelaw/ieaseMusic
11 silly lifecycle [email protected]
build-all: Args: [ '-c', 'npm run build-main && npm run build-renderer' ]
12 silly lifecycle [email protected]build-all: Returned: code: 2 signal: null
13 info lifecycle [email protected]
build-all: Failed to exec build-all script
14 verbose stack Error: [email protected] build-all: npm run build-main && npm run build-renderer
14 verbose stack Exit status 2
14 verbose stack at EventEmitter. (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
14 verbose stack at EventEmitter.emit (events.js:315:20)
14 verbose stack at ChildProcess. (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
14 verbose stack at ChildProcess.emit (events.js:315:20)
14 verbose stack at maybeClose (internal/child_process.js:1051:16)
14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5)
15 verbose pkgid [email protected]
16 verbose cwd /Users/lawrencelaw/ieaseMusic
17 verbose Darwin 17.7.0
18 verbose argv "/usr/local/Cellar/node/14.3.0/bin/node" "/usr/local/bin/npm" "run" "build-all"
19 verbose node v14.3.0
20 verbose npm v6.14.4
21 error code ELIFECYCLE
22 error errno 2
23 error [email protected] build-all: npm run build-main && npm run build-renderer
23 error Exit status 2
24 error Failed at the [email protected] build-all script.
24 error This is probably not a problem with npm. There is likely additional logging output above.
25 verbose exit [ 2, true ]

构建失败

构建失败了,提示没有命令
`yarn dev
yarn run

v1.22.19
$ cross-env START_HOT=1 NPM run start-renderer-dev
/bin/sh: line 1: cross-env: command not found
error Command failed with exit code 127.
Info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. yarn build
yarn run v1.22.19
$ NPM run build-all && electron-builder

[email protected] build-all
npm run build-main && npm run build-renderer

[email protected] build-main
webpack --config webpack/webpack.main.prod.config.js

Sh: line 1: webpack: command not found
error Command failed with exit code 127.
Info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.`

系统是arch,内核是5.19-arch2-1,桌面环境是bspwm,yarn版本是1.22.19,node版本是v18.7.0

加油

求一个Windows版本

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.