Added extraResources config to electron builder

This commit is contained in:
Kylart 2020-01-16 01:10:04 +01:00
parent 1e3eef2861
commit de7a9a6451
1 changed files with 31 additions and 3 deletions

View File

@ -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']
}
]
}
},