summaryrefslogtreecommitdiffhomepage
path: root/gui
diff options
context:
space:
mode:
authorLinus Färnstrand <linus@mullvad.net>2023-01-24 09:27:37 +0100
committerLinus Färnstrand <linus@mullvad.net>2023-01-24 09:27:37 +0100
commit01f0e5f473f82c2434ec3cfb7ba509f8494efbcc (patch)
tree74f27d11e96282bb705b8effa42ebafb3c74b3a6 /gui
parent99b36c48ba03968872bff96758b8450643b6521d (diff)
parent54c6fedf2b69609ca4605ff21f52383f60a18256 (diff)
downloadmullvadvpn-01f0e5f473f82c2434ec3cfb7ba509f8494efbcc.tar.xz
mullvadvpn-01f0e5f473f82c2434ec3cfb7ba509f8494efbcc.zip
Merge branch 'move-shell-completions'
Diffstat (limited to 'gui')
-rw-r--r--gui/tasks/distribution.js24
1 files changed, 14 insertions, 10 deletions
diff --git a/gui/tasks/distribution.js b/gui/tasks/distribution.js
index 1f045ba249..d3d6ad6dc6 100644
--- a/gui/tasks/distribution.js
+++ b/gui/tasks/distribution.js
@@ -26,7 +26,7 @@ const config = {
compression: noCompression ? 'store' : 'normal',
extraResources: [
{ from: distAssets('ca.crt'), to: '.' },
- { from: root('build/relays.json'), to: '.' },
+ { from: buildAssets('relays.json'), to: '.' },
{ from: root('CHANGELOG.md'), to: '.' },
],
@@ -99,8 +99,8 @@ const config = {
},
{ from: distAssets(path.join('binaries', '${env.TARGET_TRIPLE}', 'openvpn')), to: '.' },
{ from: distAssets('uninstall_macos.sh'), to: './uninstall.sh' },
- { from: distAssets('shell-completions/_mullvad'), to: '.' },
- { from: distAssets('shell-completions/mullvad.fish'), to: '.' },
+ { from: buildAssets('shell-completions/_mullvad'), to: '.' },
+ { from: buildAssets('shell-completions/mullvad.fish'), to: '.' },
],
},
@@ -142,7 +142,7 @@ const config = {
to: '.',
},
{ from: distAssets('binaries/x86_64-pc-windows-msvc/openvpn.exe'), to: '.' },
- { from: root('build/lib/x86_64-pc-windows-msvc/libwg.dll'), to: '.' },
+ { from: buildAssets('lib/x86_64-pc-windows-msvc/libwg.dll'), to: '.' },
{ from: distAssets('binaries/x86_64-pc-windows-msvc/wintun/wintun.dll'), to: '.' },
{ from: distAssets('binaries/x86_64-pc-windows-msvc/split-tunnel/mullvad-split-tunnel.sys'), to: '.' },
{
@@ -190,10 +190,10 @@ const config = {
distAssets(path.join(getLinuxTargetSubdir(), 'mullvad-daemon')) + '=/usr/bin/',
distAssets(path.join(getLinuxTargetSubdir(), 'mullvad-exclude')) + '=/usr/bin/',
distAssets('linux/problem-report-link') + '=/usr/bin/mullvad-problem-report',
- distAssets('shell-completions/mullvad.bash') +
+ buildAssets('shell-completions/mullvad.bash') +
'=/usr/share/bash-completion/completions/mullvad',
- distAssets('shell-completions/_mullvad') + '=/usr/local/share/zsh/site-functions/_mullvad',
- distAssets('shell-completions/mullvad.fish') +
+ buildAssets('shell-completions/_mullvad') + '=/usr/local/share/zsh/site-functions/_mullvad',
+ buildAssets('shell-completions/mullvad.fish') +
'=/usr/share/fish/vendor_completions.d/mullvad.fish',
],
afterInstall: distAssets('linux/after-install.sh'),
@@ -215,10 +215,10 @@ const config = {
distAssets(path.join(getLinuxTargetSubdir(), 'mullvad-daemon')) + '=/usr/bin/',
distAssets(path.join(getLinuxTargetSubdir(), 'mullvad-exclude')) + '=/usr/bin/',
distAssets('linux/problem-report-link') + '=/usr/bin/mullvad-problem-report',
- distAssets('shell-completions/mullvad.bash') +
+ buildAssets('shell-completions/mullvad.bash') +
'=/usr/share/bash-completion/completions/mullvad',
- distAssets('shell-completions/_mullvad') + '=/usr/share/zsh/site-functions/_mullvad',
- distAssets('shell-completions/mullvad.fish') +
+ buildAssets('shell-completions/_mullvad') + '=/usr/share/zsh/site-functions/_mullvad',
+ buildAssets('shell-completions/mullvad.fish') +
'=/usr/share/fish/vendor_completions.d/mullvad.fish',
],
afterInstall: distAssets('linux/after-install.sh'),
@@ -371,6 +371,10 @@ function packLinux() {
});
}
+function buildAssets(relativePath) {
+ return path.join(path.resolve(__dirname, '../../build'), relativePath);
+}
+
function distAssets(relativePath) {
return path.join(path.resolve(__dirname, '../../dist-assets'), relativePath);
}