diff options
| author | Linus Färnstrand <linus@mullvad.net> | 2019-10-09 16:23:16 +0200 |
|---|---|---|
| committer | Linus Färnstrand <linus@mullvad.net> | 2019-10-09 16:50:06 +0200 |
| commit | d7fff16dc09089d4f45ff48288872ab4e63fde88 (patch) | |
| tree | 159524fd26d0469d7fe3652753f49b7a6a7fbb10 | |
| parent | 76f0d0e834b3bd5f8f1db5625233dd0fcffc6c03 (diff) | |
| download | mullvadvpn-d7fff16dc09089d4f45ff48288872ab4e63fde88.tar.xz mullvadvpn-d7fff16dc09089d4f45ff48288872ab4e63fde88.zip | |
Adapt to problem-report binary being called mullvad-problem-report
| -rw-r--r-- | .gitignore | 4 | ||||
| -rw-r--r-- | README.md | 4 | ||||
| -rwxr-xr-x | build.sh | 6 | ||||
| -rwxr-xr-x | dist-assets/pkg-scripts/postinstall | 2 | ||||
| -rw-r--r-- | gui/src/main/index.ts | 4 | ||||
| -rw-r--r-- | gui/tasks/distribution.js | 6 | ||||
| -rw-r--r-- | mullvad-problem-report/Cargo.toml | 6 | ||||
| -rw-r--r-- | mullvad-problem-report/src/main.rs | 4 |
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 @@ -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 @@ -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.") |
