Skip to content

Commit f2f2008

Browse files
committed
Merge branch 'dev'
2 parents c979339 + 15d2589 commit f2f2008

80 files changed

Lines changed: 2652 additions & 4039 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CHANGELOG.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,32 @@ Project versioning adheres to [Semantic Versioning](http://semver.org/).
66
Commit convention is based on [Conventional Commits](http://conventionalcommits.org).
77
Change log format is based on [Keep a Changelog](http://keepachangelog.com/).
88

9+
## [1.21.0](https://github.com/lyswhut/lx-music-desktop/compare/v1.20.0...v1.21.0) - 2022-05-22
10+
11+
### 新增
12+
13+
- 新增设置-播放设置-显示歌词罗马音,默认关闭,注:目前只有网易源能获取到罗马音歌词(得益于 Binaryify/NeteaseCloudMusicApi/pull/1523),如果你知道其他源的歌词罗马音获取方式,欢迎PR或开issue交流!
14+
15+
### 优化
16+
17+
- 同时删除一首歌以上时将需要二次确认删除
18+
- 禁用透明窗口时右侧不再偏移5px距离(在win7、Ubuntu等系统上测试发现不偏移也不影响滚动条的拖动了)
19+
- 删除未下载完成的任务时,只同时尝试删除已有下载进度的本地文件
20+
- 在全屏状态下使用`Esc`键可以退出全屏(#827
21+
22+
### 修复
23+
24+
- 修复某些情况下歌曲播放出错时不会自动切歌的问题
25+
- 修复关闭“显示切换动画”设置后,在应用启动时该设置没有被应用的问题
26+
- 修复原始歌词存在偏移时,歌词偏移设置的重置未按预期工作的问题
27+
- 修复长度大于一行的歌词在使用歌词调整播放进度时的时间不准问题
28+
- 修复潜在歌单更新失败的问题
29+
30+
### 文档
31+
32+
- 将歌曲添加“稍后播放”后,它们会被放在一个优先级最高的特殊队列中,点击“下一曲”时会消耗该队列中的歌曲,并且无法通过“上一曲”功能播放该队列的上一首歌曲
33+
- 在切歌时若不是通过“上一曲”、“下一曲”功能切歌(例如直接点击“排行榜列表”、“我的列表”中的歌曲切歌),“稍后播放”队列将会被清空
34+
935
## [1.20.0](https://github.com/lyswhut/lx-music-desktop/compare/v1.19.0...v1.20.0) - 2022-04-17
1036

1137
特别说明:Scheme URL其实是支持Linux系统的,但好像需要deb之类的安装包创建出`.desktop`文件才行。

FAQ.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
4. 对于歌单详情列表,除了可以使用第2条的方式播放外,你可以点击详情页上面的播放按钮临时播放当前歌单,或点击收藏将当前歌单收藏到“我的列表”后再去播放
1515
5. 对于排行榜详情列表,除了可以使用第2条的方式播放外,你可以在右击排行榜名字后弹出的菜单中,播放或收藏整个排行榜,这与第四条的歌单中的播放、与收藏按钮功能一致
1616
6. v1.18.0及之后新增了“双击列表里的歌曲时自动切换到当前列表播放”设置,默认关闭,此功能仅对歌单、排行榜有效
17+
7. 将歌曲添加“稍后播放”后,它们会被放在一个优先级最高的特殊队列中,点击“下一曲”时会消耗该队列中的歌曲,并且无法通过“上一曲”功能播放该队列的上一首歌曲
18+
8. 在切歌时若不是通过“上一曲”、“下一曲”功能切歌(例如直接点击“排行榜列表”、“我的列表”中的歌曲切歌),“稍后播放”队列将会被清空
1719

1820
## 可用的鼠标、键盘快捷操作
1921

@@ -165,7 +167,7 @@
165167

166168
### Windows 7 下界面异常
167169

168-
由于软件默认使用了透明窗口,根据Electron官方文档的[说明](https://electronjs.org/docs/api/frameless-window#%E5%B1%80%E9%99%90%E6%80%A7)
170+
由于软件默认使用了透明窗口,根据Electron官方文档的[说明](https://www.electronjs.org/docs/latest/tutorial/window-customization#limitations)
169171
> 在 windows 操作系统上, 当 DWM 被禁用时, 透明窗口将无法工作。
170172
171173
因此,当 win7 没有使用**Aero**主题时界面将会显示异常,开启AERO的方法请自行百度:`win7开启Aero效果`(开启后可看到任务栏变透明)。<br>

build-config/main/webpack.config.base.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module.exports = {
66
output: {
77
filename: '[name].js',
88
libraryTarget: 'commonjs2',
9-
path: path.join(__dirname, '../../dist/electron'),
9+
path: path.join(__dirname, '../../dist'),
1010
},
1111
resolve: {
1212
alias: {
@@ -25,9 +25,6 @@ module.exports = {
2525
},
2626
],
2727
},
28-
performance: {
29-
maxEntrypointSize: 300000,
30-
},
3128
plugins: [
3229
new ESLintPlugin(),
3330
],

build-config/main/webpack.config.dev.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,8 @@ module.exports = merge(baseConfig, {
1919
__userApi: `"${path.join(__dirname, '../../src/main/modules/userApi').replace(/\\/g, '\\\\')}"`,
2020
}),
2121
],
22+
performance: {
23+
maxEntrypointSize: 1024 * 1024 * 50,
24+
maxAssetSize: 1024 * 1024 * 30,
25+
},
2226
})

build-config/main/webpack.config.prod.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ module.exports = merge(baseConfig, {
2626
patterns: [
2727
{
2828
from: path.join(__dirname, '../../src/main/modules/userApi/renderer'),
29-
to: path.join(__dirname, '../../dist/electron/userApi/renderer'),
29+
to: path.join(__dirname, '../../dist/userApi/renderer'),
3030
},
3131
{
3232
from: path.join(__dirname, '../../src/main/modules/userApi/rendererEvent/name.js'),
33-
to: path.join(__dirname, '../../dist/electron/userApi/rendererEvent/name.js'),
33+
to: path.join(__dirname, '../../dist/userApi/rendererEvent/name.js'),
3434
},
3535
],
3636
}),
@@ -40,6 +40,10 @@ module.exports = merge(baseConfig, {
4040
},
4141
}),
4242
],
43+
performance: {
44+
maxEntrypointSize: 1024 * 1024 * 10,
45+
maxAssetSize: 1024 * 1024 * 20,
46+
},
4347
optimization: {
4448
minimize: false,
4549
},

build-config/pack.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const okayLog = chalk.bgGreen.white(' OKAY ') + ' '
1414

1515

1616
function build() {
17-
del.sync(['dist/electron/**', 'build/**'])
17+
del.sync(['dist/**', 'build/**'])
1818

1919
const spinners = new Spinnies({ color: 'blue' })
2020
spinners.add('main', { text: 'main building' })

build-config/renderer-lyric/webpack.config.base.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ module.exports = {
1717
output: {
1818
filename: '[name].js',
1919
libraryTarget: 'commonjs2',
20-
path: path.join(__dirname, '../../dist/electron'),
20+
path: path.join(__dirname, '../../dist'),
2121
publicPath: 'auto',
2222
},
2323
resolve: {
@@ -127,9 +127,6 @@ module.exports = {
127127
},
128128
],
129129
},
130-
performance: {
131-
maxEntrypointSize: 300000,
132-
},
133130
plugins: [
134131
new HTMLPlugin({
135132
filename: 'lyric.html',

build-config/renderer-lyric/webpack.config.prod.js

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
const path = require('path')
1+
// const path = require('path')
22
const webpack = require('webpack')
33
const CssMinimizerPlugin = require('css-minimizer-webpack-plugin')
44
const TerserPlugin = require('terser-webpack-plugin')
5-
const CopyWebpackPlugin = require('copy-webpack-plugin')
65
const { merge } = require('webpack-merge')
76

87
const baseConfig = require('./webpack.config.base')
@@ -20,14 +19,6 @@ module.exports = merge(baseConfig, {
2019
...Object.keys(dependencies || {}).filter(d => !whiteListedModules.includes(d)),
2120
],
2221
plugins: [
23-
new CopyWebpackPlugin({
24-
patterns: [
25-
{
26-
from: path.join(__dirname, '../../src/static'),
27-
to: path.join(__dirname, '../../dist/electron/static'),
28-
},
29-
],
30-
}),
3122
new webpack.DefinePlugin({
3223
'process.env': {
3324
NODE_ENV: '"production"',
@@ -44,6 +35,8 @@ module.exports = merge(baseConfig, {
4435
],
4536
},
4637
performance: {
38+
maxEntrypointSize: 1024 * 1024 * 10,
39+
maxAssetSize: 1024 * 1024 * 20,
4740
hints: 'warning',
4841
},
4942
node: {

build-config/renderer/webpack.config.base.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ module.exports = {
1717
output: {
1818
filename: '[name].js',
1919
libraryTarget: 'commonjs2',
20-
path: path.join(__dirname, '../../dist/electron'),
20+
path: path.join(__dirname, '../../dist'),
2121
publicPath: 'auto',
2222
},
2323
resolve: {
@@ -127,9 +127,6 @@ module.exports = {
127127
},
128128
],
129129
},
130-
performance: {
131-
maxEntrypointSize: 300000,
132-
},
133130
plugins: [
134131
new HTMLPlugin({
135132
filename: 'index.html',

build-config/renderer/webpack.config.prod.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ module.exports = merge(baseConfig, {
2323
patterns: [
2424
{
2525
from: path.join(__dirname, '../../src/static'),
26-
to: path.join(__dirname, '../../dist/electron/static'),
26+
to: path.join(__dirname, '../../dist/static'),
2727
},
2828
],
2929
}),
@@ -43,6 +43,8 @@ module.exports = merge(baseConfig, {
4343
],
4444
},
4545
performance: {
46+
maxEntrypointSize: 1024 * 1024 * 10,
47+
maxAssetSize: 1024 * 1024 * 20,
4648
hints: 'warning',
4749
},
4850
node: {

0 commit comments

Comments
 (0)