@@ -9,13 +9,13 @@ TEMP_DIR="/tmp/octra-wallet-gen-install"
99
1010echo " === ⚠️ SECURITY WARNING ⚠️ ==="
1111echo " "
12- echo " This tool generates real cryptographic keys. Always :"
13- echo " - Keep your private keys secure"
14- echo " - Never share your mnemonic phrase"
15- echo " - Don 't store wallet files on cloud services"
16- echo " - Use on a secure, offline computer for production wallets"
12+ echo " this tool generates real cryptographic keys. always :"
13+ echo " - keep your private keys secure"
14+ echo " - never share your mnemonic phrase"
15+ echo " - don 't store wallet files on cloud services"
16+ echo " - use on a secure, offline computer for production wallets"
1717echo " "
18- read -p " Press Enter to continue..." < /dev/tty
18+ read -p " press enter to continue..." < /dev/tty
1919echo " "
2020echo " === octra wallet generator installer ==="
2121echo " "
@@ -37,24 +37,23 @@ get_latest_release() {
3737
3838download_and_extract () {
3939 local tag=$1
40- echo " Downloading octra wallet generator..."
40+ echo " downloading octra wallet generator..."
4141
4242 rm -rf " $TEMP_DIR "
4343 mkdir -p " $TEMP_DIR "
4444
4545 local tarball_url=" https://api.github.com/repos/${REPO_OWNER} /${REPO_NAME} /tarball/refs/tags/${tag} "
46- echo " Downloading from $tarball_url "
4746 curl -L -o " $TEMP_DIR /release.tar.gz" " $tarball_url "
4847
4948 cd " $TEMP_DIR "
5049 tar -xzf release.tar.gz --strip-components=1
5150}
5251
53- echo " Fetching latest release information..."
52+ echo " fetching latest release information..."
5453LATEST_TAG=$( get_latest_release)
5554if [ -z " $LATEST_TAG " ]; then
56- echo " ❌ Error: Could not fetch latest release information."
57- echo " Please check your internet connection and try again."
55+ echo " ❌ error: could not fetch latest release information."
56+ echo " please check your internet connection and try again."
5857 exit 1
5958fi
6059
@@ -67,29 +66,29 @@ install_bun
6766bun install
6867
6968echo " "
70- echo " Building standalone executable..."
69+ echo " building standalone executable..."
7170bun run build
7271
7372if [ ! -f " ./wallet-generator" ]; then
74- echo " ❌ Error : wallet-generator executable not found!"
75- echo " Build may have failed. Please check the build output above."
73+ echo " ❌ error : wallet-generator executable not found!"
74+ echo " build may have failed. please check the build output above."
7675 exit 1
7776fi
7877
79- echo " Installing to $INSTALL_DIR ..."
78+ echo " installing to $INSTALL_DIR ..."
8079mkdir -p " $INSTALL_DIR "
8180cp ./wallet-generator " $INSTALL_DIR /"
8281
8382echo " "
84- echo " Starting wallet generator server..."
83+ echo " starting wallet generator server..."
8584
8685cd " $INSTALL_DIR "
8786
8887rm -rf " $TEMP_DIR "
8988
9089if lsof -i :8888 > /dev/null 2>&1 ; then
91- echo " ❌ Error: Port 8888 is already in use!"
92- echo " Please stop any existing service using port 8888."
90+ echo " ❌ error: port 8888 is already in use!"
91+ echo " please stop any existing service using port 8888."
9392 exit 1
9493fi
9594
@@ -105,10 +104,10 @@ if [ -n "$BROWSER_CMD" ]; then
105104fi
106105
107106echo " "
108- echo " === Installation Complete ! ==="
109- echo " Wallet generator is running at http://localhost:8888"
110- echo " To run again later, use: $INSTALL_DIR /wallet-generator"
111- echo " To stop the wallet generator, press Ctrl+C"
107+ echo " === installation complete ! ==="
108+ echo " wallet generator is running at http://localhost:8888"
109+ echo " to run again later, use: $INSTALL_DIR /wallet-generator"
110+ echo " to stop the wallet generator, press Ctrl+C"
112111echo " "
113112
114113wait $WALLET_PID
0 commit comments