diff options
| author | Oskar Nyberg <oskar@mullvad.net> | 2022-01-18 21:51:22 +0100 |
|---|---|---|
| committer | Oskar Nyberg <oskar@mullvad.net> | 2022-01-27 10:39:37 +0100 |
| commit | bab9e89a3564fa7d8d96a0c377dba1ceab972e04 (patch) | |
| tree | 53a479a964fdc6c6514c1719556544409c0f1561 /gui | |
| parent | ee64e62e72ba93a96af88384f8498902098b40dd (diff) | |
| download | mullvadvpn-bab9e89a3564fa7d8d96a0c377dba1ceab972e04.tar.xz mullvadvpn-bab9e89a3564fa7d8d96a0c377dba1ceab972e04.zip | |
Format distribution.js
Diffstat (limited to 'gui')
| -rw-r--r-- | gui/tasks/distribution.js | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/gui/tasks/distribution.js b/gui/tasks/distribution.js index 5f2876e9b1..798883b0ad 100644 --- a/gui/tasks/distribution.js +++ b/gui/tasks/distribution.js @@ -52,7 +52,7 @@ const config = { afterPack: (context) => { const resources = context.packager.platformSpecificBuildOptions.extraResources; for (const resource of resources) { - const filePath = resource.from.replace(/\$\{env\.(.*)\}/, function(match, captureGroup) { + const filePath = resource.from.replace(/\$\{env\.(.*)\}/, function (match, captureGroup) { return process.env[captureGroup]; }); @@ -124,9 +124,22 @@ const config = { { from: distAssets('mullvad-problem-report.exe'), to: '.' }, { from: distAssets('mullvad-daemon.exe'), to: '.' }, { from: distAssets('talpid_openvpn_plugin.dll'), to: '.' }, - { from: root(path.join('windows', 'winfw', 'bin', 'x64-${env.CPP_BUILD_MODE}', 'winfw.dll')), to: '.' }, - { from: root(path.join('windows', 'windns', 'bin', 'x64-${env.CPP_BUILD_MODE}', 'windns.dll')), to: '.' }, - { from: root(path.join('windows', 'winnet', 'bin', 'x64-${env.CPP_BUILD_MODE}', 'winnet.dll')), to: '.' }, + { + from: root(path.join('windows', 'winfw', 'bin', 'x64-${env.CPP_BUILD_MODE}', 'winfw.dll')), + to: '.', + }, + { + from: root( + path.join('windows', 'windns', 'bin', 'x64-${env.CPP_BUILD_MODE}', 'windns.dll'), + ), + to: '.', + }, + { + from: root( + path.join('windows', 'winnet', 'bin', 'x64-${env.CPP_BUILD_MODE}', 'winnet.dll'), + ), + to: '.', + }, { from: distAssets('binaries/x86_64-pc-windows-msvc/openvpn.exe'), to: '.' }, { from: distAssets('binaries/x86_64-pc-windows-msvc/sslocal.exe'), to: '.' }, { from: root('build/lib/x86_64-pc-windows-msvc/libwg.dll'), to: '.' }, |
