summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--.gitignore4
-rw-r--r--README.md4
-rwxr-xr-xbuild.sh6
-rwxr-xr-xdist-assets/pkg-scripts/postinstall2
-rw-r--r--gui/src/main/index.ts4
-rw-r--r--gui/tasks/distribution.js6
-rw-r--r--mullvad-problem-report/Cargo.toml6
-rw-r--r--mullvad-problem-report/src/main.rs4
8 files changed, 16 insertions, 20 deletions
diff --git a/.gitignore b/.gitignore
index fd73a42e92..f742669159 100644
--- a/.gitignore
+++ b/.gitignore
@@ -14,8 +14,8 @@
/dist-assets/mullvad.exe
/dist-assets/mullvad-daemon
/dist-assets/mullvad-daemon.exe
-/dist-assets/problem-report
-/dist-assets/problem-report.exe
+/dist-assets/mullvad-problem-report
+/dist-assets/mullvad-problem-report.exe
/dist-assets/libtalpid_openvpn_plugin.dylib
/dist-assets/libtalpid_openvpn_plugin.so
/dist-assets/talpid_openvpn_plugin.dll
diff --git a/README.md b/README.md
index 79cd9d54ea..9d79961df6 100644
--- a/README.md
+++ b/README.md
@@ -289,8 +289,8 @@ to do that before starting the GUI.
### Supported environment variables
-1. `MULLVAD_PATH` - Allows changing the path to the folder with the `problem-report` tool when
- running in development mode. Defaults to: `<repo>/target/debug/`.
+1. `MULLVAD_PATH` - Allows changing the path to the folder with the `mullvad-problem-report` tool
+ when running in development mode. Defaults to: `<repo>/target/debug/`.
## Building the Android app
diff --git a/build.sh b/build.sh
index 9a74df8403..43f2a157ba 100755
--- a/build.sh
+++ b/build.sh
@@ -104,21 +104,21 @@ if [[ ("$(uname -s)" == "Darwin") ]]; then
binaries=(
mullvad-daemon
mullvad
- problem-report
+ mullvad-problem-report
libtalpid_openvpn_plugin.dylib
)
elif [[ ("$(uname -s)" == "Linux") ]]; then
binaries=(
mullvad-daemon
mullvad
- problem-report
+ mullvad-problem-report
libtalpid_openvpn_plugin.so
)
elif [[ ("$(uname -s)" == "MINGW"*) ]]; then
binaries=(
mullvad-daemon.exe
mullvad.exe
- problem-report.exe
+ mullvad-problem-report.exe
talpid_openvpn_plugin.dll
)
fi
diff --git a/dist-assets/pkg-scripts/postinstall b/dist-assets/pkg-scripts/postinstall
index e8229e5f3d..37dec02c09 100755
--- a/dist-assets/pkg-scripts/postinstall
+++ b/dist-assets/pkg-scripts/postinstall
@@ -56,4 +56,4 @@ launchctl load -w $DAEMON_PLIST_PATH
mkdir -p /usr/local/bin
ln -sf "$INSTALL_DIR/Mullvad VPN.app/Contents/Resources/mullvad" /usr/local/bin/mullvad
-ln -sf "$INSTALL_DIR/Mullvad VPN.app/Contents/Resources/problem-report" /usr/local/bin/mullvad-problem-report
+ln -sf "$INSTALL_DIR/Mullvad VPN.app/Contents/Resources/mullvad-problem-report" /usr/local/bin/mullvad-problem-report
diff --git a/gui/src/main/index.ts b/gui/src/main/index.ts
index 6b91926533..cba1caac5a 100644
--- a/gui/src/main/index.ts
+++ b/gui/src/main/index.ts
@@ -996,7 +996,7 @@ class ApplicationMain {
'collect-logs',
(event: Electron.IpcMainEvent, requestId: string, toRedact: string[]) => {
const reportPath = path.join(app.getPath('temp'), uuid.v4() + '.log');
- const executable = resolveBin('problem-report');
+ const executable = resolveBin('mullvad-problem-report');
const args = ['collect', '--output', reportPath];
if (toRedact.length > 0) {
args.push('--redact', ...toRedact);
@@ -1035,7 +1035,7 @@ class ApplicationMain {
message: string,
savedReport: string,
) => {
- const executable = resolveBin('problem-report');
+ const executable = resolveBin('mullvad-problem-report');
const args = ['send', '--email', email, '--message', message, '--report', savedReport];
execFile(executable, args, { windowsHide: true }, (error, stdout, stderr) => {
diff --git a/gui/tasks/distribution.js b/gui/tasks/distribution.js
index 5aef4643a6..775dbd526d 100644
--- a/gui/tasks/distribution.js
+++ b/gui/tasks/distribution.js
@@ -46,7 +46,7 @@ const config = {
},
extraResources: [
{ from: distAssets('mullvad'), to: '.' },
- { from: distAssets('problem-report'), to: '.' },
+ { from: distAssets('mullvad-problem-report'), to: '.' },
{ from: distAssets('mullvad-daemon'), to: '.' },
{ from: distAssets('libtalpid_openvpn_plugin.dylib'), to: '.' },
{ from: distAssets('binaries/x86_64-apple-darwin/openvpn'), to: '.' },
@@ -84,7 +84,7 @@ const config = {
signDlls: true,
extraResources: [
{ from: distAssets('mullvad.exe'), to: '.' },
- { from: distAssets('problem-report.exe'), to: '.' },
+ { from: distAssets('mullvad-problem-report.exe'), to: '.' },
{ from: distAssets('mullvad-daemon.exe'), to: '.' },
{ from: distAssets('talpid_openvpn_plugin.dll'), to: '.' },
{ from: root('windows/winfw/bin/x64-Release/winfw.dll'), to: '.' },
@@ -102,7 +102,7 @@ const config = {
category: 'Network',
extraFiles: [{ from: distAssets('linux/mullvad-gui-launcher.sh'), to: '.' }],
extraResources: [
- { from: distAssets('problem-report'), to: '.' },
+ { from: distAssets('mullvad-problem-report'), to: '.' },
{ from: distAssets('mullvad-daemon'), to: '.' },
{ from: distAssets('libtalpid_openvpn_plugin.so'), to: '.' },
{ from: distAssets('binaries/x86_64-unknown-linux-gnu/openvpn'), to: '.' },
diff --git a/mullvad-problem-report/Cargo.toml b/mullvad-problem-report/Cargo.toml
index b897961dbc..94d2c39466 100644
--- a/mullvad-problem-report/Cargo.toml
+++ b/mullvad-problem-report/Cargo.toml
@@ -13,10 +13,6 @@ description = "Collect Mullvad VPN logs into a report and send it to support"
license = "GPL-3.0"
edition = "2018"
-[[bin]]
-name = "problem-report"
-path = "src/main.rs"
-
[dependencies]
clap = "2.25"
dirs = "2.0"
@@ -50,4 +46,4 @@ ProductName = "Mullvad VPN"
CompanyName = "Amagicom AB"
LegalCopyright = "(c) 2018 Amagicom AB"
InternalName = "mullvad-problem-report"
-OriginalFilename = "problem-report.exe"
+OriginalFilename = "mullvad-problem-report.exe"
diff --git a/mullvad-problem-report/src/main.rs b/mullvad-problem-report/src/main.rs
index 4ca52967bf..7703e98adc 100644
--- a/mullvad-problem-report/src/main.rs
+++ b/mullvad-problem-report/src/main.rs
@@ -8,7 +8,7 @@
#![deny(rust_2018_idioms)]
-use clap::crate_authors;
+use clap::{crate_authors, crate_name};
use mullvad_problem_report::{collect_report, metadata, send_problem_report, Error};
use std::{env, path::Path, process};
use talpid_types::ErrorExt;
@@ -26,7 +26,7 @@ fn main() {
fn run() -> Result<(), Error> {
env_logger::init();
- let app = clap::App::new("problem-report")
+ let app = clap::App::new(crate_name!())
.version(metadata::PRODUCT_VERSION)
.author(crate_authors!())
.about("Mullvad VPN problem report tool. Collects logs and sends them to Mullvad support.")