mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-16 13:17:46 +00:00
feat: switch to UNM (Rust) (#1536)
* refactor: use unm-rust-napi * ci(build): install UNM dependencies for certain platforms * feat: add the ability to configure UNM * feat: add the UNM configuration in settings page * refactor(jsconfig): jsx -> preserve * fix(ci/build): use bash to get unm version * chore(deps): upgrade UNM to 0.3.0-pre.0 * refactor(electron/ipcMain): update default sources * fix(views/settings): remove duplicated config entry * feat(settings): allow configuring QQ cookie We also removed some duplicate entries in views/settings.vue. * chore(deps): UNM -> 0.3.0-pre.1 * refactor: remove unused old UNM * fix(utils/player): do not include rust-napi in client code As we only imported the constant, I just expand it as the integer. Co-authored-by: qier222 <qier222@outlook.com>
This commit is contained in:
parent
e1f7618cbd
commit
93ae57adbe
8 changed files with 452 additions and 208 deletions
|
|
@ -56,6 +56,13 @@ module.exports = {
|
|||
symbolId: 'icon-[name]',
|
||||
})
|
||||
.end();
|
||||
config.module
|
||||
.rule('napi')
|
||||
.test(/\.node$/)
|
||||
.use('node-loader')
|
||||
.loader('node-loader')
|
||||
.end();
|
||||
|
||||
// LimitChunkCountPlugin 可以通过合并块来对块进行后期处理。用以解决 chunk 包太多的问题
|
||||
config.plugin('chunkPlugin').use(webpack.optimize.LimitChunkCountPlugin, [
|
||||
{
|
||||
|
|
@ -69,10 +76,7 @@ module.exports = {
|
|||
// electron-builder的配置文件
|
||||
electronBuilder: {
|
||||
nodeIntegration: true,
|
||||
externals: [
|
||||
'@unblockneteasemusic/server',
|
||||
'@unblockneteasemusic/server/src/consts',
|
||||
],
|
||||
externals: ['@unblockneteasemusic/rust-napi'],
|
||||
builderOptions: {
|
||||
productName: 'YesPlayMusic',
|
||||
copyright: 'Copyright © YesPlayMusic',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue