mirror of
https://github.com/therealaleph/MasterHttpRelayVPN-RUST.git
synced 2026-05-18 23:54:48 +03:00
v0.4.1: launcher scripts (run.sh / run.command / run.bat)
First run needs the CLI to install the MITM CA into the system trust store (sudo/admin prompt), which the UI alone can't do reliably from a double-click. Add a small launcher for each platform that runs the CLI with --install-cert once, then starts the UI. Each release archive now contains a run.* script alongside the binaries.
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
@echo off
|
||||
REM mhrv-rs launcher for Windows.
|
||||
REM Runs the CLI once to initialize the MITM CA (may trigger a UAC prompt when
|
||||
REM installing into the Windows trust store), then launches the UI.
|
||||
|
||||
setlocal
|
||||
cd /d "%~dp0"
|
||||
|
||||
if not exist "mhrv-rs.exe" (
|
||||
echo error: mhrv-rs.exe not found next to this script.
|
||||
pause
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
echo Initializing MITM CA (a UAC prompt may appear)...
|
||||
mhrv-rs.exe --install-cert
|
||||
if errorlevel 1 (
|
||||
echo warning: CA install returned non-zero. The UI can still run,
|
||||
echo but HTTPS sites may show certificate warnings until the CA is trusted.
|
||||
)
|
||||
|
||||
if exist "mhrv-rs-ui.exe" (
|
||||
echo Starting mhrv-rs UI...
|
||||
start "" "mhrv-rs-ui.exe"
|
||||
) else (
|
||||
echo UI binary not found. Running CLI proxy instead.
|
||||
mhrv-rs.exe
|
||||
)
|
||||
|
||||
endlocal
|
||||
Reference in New Issue
Block a user