From de7a9a645141e7a2fc2c5fc6410d892a2036bda1 Mon Sep 17 00:00:00 2001 From: Kylart Date: Thu, 16 Jan 2020 01:10:04 +0100 Subject: [PATCH] Added extraResources config to electron builder --- vue.config.js | 34 +++++++++++++++++++++++++++++++--- 1 file changed, 31 insertions(+), 3 deletions(-) diff --git a/vue.config.js b/vue.config.js index aae0bb3..d387e44 100644 --- a/vue.config.js +++ b/vue.config.js @@ -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'] + } ] } },