diff options
| author | Monzero Build System <builds@monzero.org> | 2026-08-15 21:14:26 +0100 |
|---|---|---|
| committer | Monzero Build System <builds@monzero.org> | 2026-08-15 21:14:26 +0100 |
| commit | 28f1919249465d3230f45ed21686c5a836d56df0 (patch) | |
| tree | 948fe5e7052c45c366c24a82b485ae9d1d38e39b /start-monzero-gui.sh | |
| parent | 4f92268d7c16741cfb41e5bbe2aa46cc260a9ea5 (diff) | |
| download | monzero-core-28f1919249465d3230f45ed21686c5a836d56df0.tar.gz monzero-core-28f1919249465d3230f45ed21686c5a836d56df0.tar.xz monzero-core-28f1919249465d3230f45ed21686c5a836d56df0.zip | |
Establish Monzero Phase 0 and inactive assets baselinemonzero-phase0-assets-prototype-20260815
Diffstat (limited to 'start-monzero-gui.sh')
| -rwxr-xr-x | start-monzero-gui.sh | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/start-monzero-gui.sh b/start-monzero-gui.sh new file mode 100755 index 000000000..81fa5da13 --- /dev/null +++ b/start-monzero-gui.sh @@ -0,0 +1,27 @@ +#!/usr/bin/env bash +set -euo pipefail + +PROJECT_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)" +GUI_BIN="${MONZERO_GUI_BIN:-$PROJECT_DIR/monzero-gui/build-monzero/bin/monzero-wallet-gui}" +RPC_PORT="${MONZERO_RPC_PORT:-6175}" + +if [[ ! -x "$GUI_BIN" ]]; then + printf 'Error: GUI executable not found: %s\n' "$GUI_BIN" >&2 + printf 'Build the Monzero GUI first, or set MONZERO_GUI_BIN.\n' >&2 + exit 1 +fi + +if ! curl --silent --fail --max-time 2 \ + --header 'Content-Type: application/json' \ + --data '{}' \ + "http://127.0.0.1:$RPC_PORT/get_info" >/dev/null 2>&1; then + printf 'Error: the Monzero daemon is not running at 127.0.0.1:%s.\n' "$RPC_PORT" >&2 + printf 'Start it separately with: %s/start-monzerod.sh\n' "$PROJECT_DIR" >&2 + exit 1 +fi + +printf '\nLaunching Monzero GUI.\n' +printf 'If the GUI asks for a node, choose a remote/custom node and enter:\n' +printf ' Address: 127.0.0.1\n Port: %s\n Trusted: yes\n\n' "$RPC_PORT" + +exec "$GUI_BIN" --disable-check-updates "$@" |
