mirror of https://github.com/Kylart/KawAnime.git
Added extraResources config to electron builder
This commit is contained in:
parent
1e3eef2861
commit
de7a9a6451
|
@ -55,9 +55,6 @@ module.exports = {
|
|||
}
|
||||
]
|
||||
},
|
||||
linux: {
|
||||
category: 'Network'
|
||||
},
|
||||
nsis: {
|
||||
oneClick: false,
|
||||
allowToChangeInstallationDirectory: true
|
||||
|
@ -75,6 +72,13 @@ module.exports = {
|
|||
]
|
||||
}],
|
||||
mac: {
|
||||
extraFiles: [
|
||||
{
|
||||
from: './bindings/build/Release',
|
||||
to: '.',
|
||||
filter: ['*.dylib']
|
||||
}
|
||||
],
|
||||
extraResources: [
|
||||
{
|
||||
from: './public/mpv',
|
||||
|
@ -83,6 +87,23 @@ module.exports = {
|
|||
}
|
||||
]
|
||||
},
|
||||
linux: {
|
||||
category: 'Network',
|
||||
extraFiles: [
|
||||
{
|
||||
from: './bindings/build/Release',
|
||||
to: '.',
|
||||
filter: ['*.so']
|
||||
}
|
||||
],
|
||||
extraResources: [
|
||||
{
|
||||
from: './public/mpv',
|
||||
to: 'mpv',
|
||||
filter: ['*.so', '*.node']
|
||||
}
|
||||
]
|
||||
},
|
||||
win: {
|
||||
extraFiles: [
|
||||
{
|
||||
|
@ -90,6 +111,13 @@ module.exports = {
|
|||
to: '.',
|
||||
filter: ['*.dll']
|
||||
}
|
||||
],
|
||||
extraResources: [
|
||||
{
|
||||
from: '.\\public\\mpv',
|
||||
to: 'mpv',
|
||||
filter: ['*.dll', '*.node']
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue