Skip to content

Commit

Permalink
✏️ doc: modify installation document prompts and scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Liquidwe committed Dec 13, 2024
1 parent 31e1163 commit 0cf0107
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 12 deletions.
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
[![Docs](https://img.shields.io/badge/docs-chainbase.com-0345b2?label=Docs&color=4c4293)](https://docs.chainbase.com/core-concepts/manuscript/overview#core-values-and-capabilities-of-manuscript)
[![Discord](https://img.shields.io/badge/Chainbase-4c4293?logo=Discord)](https://discord.com/channels/933995010158907422/935156893872185344)
[![Telegram](https://img.shields.io/badge/Chainbase-4c4293?logo=Telegram)](https://t.me/ChainbaseNetwork)
<a href="https%3A%2F%2Fx.com%2FchainbaseHQ" target="_blank" style="display: flex; align-items: center;">
<a href="https://x.com/chainbasehq" target="_blank" style="display: flex; align-items: center;">
<img src="https://img.shields.io/badge/Twitter-4c4293?logo=x&logoColor=white" alt="Twitter" />
</a>
# Build The World's Largest Omnichain Data Network
Expand Down Expand Up @@ -49,14 +49,16 @@ The vision of Manuscript is to realize “data trade” within the Chainbase net
## Getting Started 🏄
### Install Manuscript Client
You may choose to run any client or compile from the source code:
##### GUI
```shell
# GUI
curl -fsSL https://github.com/chainbase-labs/manuscript-core/raw/main/install-gui.sh | bash

# CUI
```
#### CUI
```shell
curl -fsSL https://github.com/chainbase-labs/manuscript-core/raw/main/install.sh | bash

# or make
```
#### MAKE
```shell
➜ manuscript-core git:(main) ✗ make
Available targets:
🔧 all - Build both CLI and GUI
Expand Down
29 changes: 23 additions & 6 deletions install-gui.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
#!/bin/bash

# Define the version and base URL
VERSION="v1.1.0"
BASE_URL="https://github.com/chainbase-labs/manuscript-core/releases/download/$VERSION"
# Fetch the latest version tag from GitHub API
REPO="chainbase-labs/manuscript-core"
LATEST_VERSION=$(curl -s "https://api.github.com/repos/$REPO/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/')

if [[ -z "$LATEST_VERSION" ]]; then
echo "Failed to fetch the latest version. Please check your internet connection or the repository."
exit 1
fi

echo "Latest version: $LATEST_VERSION"

# Define the base URL with the latest version
BASE_URL="https://github.com/$REPO/releases/download/$LATEST_VERSION"

# Determine OS type and set the download URL
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
Expand All @@ -16,10 +26,17 @@ fi

# Download the binary
echo "Downloading from $BINARY_URL..."
curl -L -o manuscript "$BINARY_URL"
curl -L -o manuscript-gui "$BINARY_URL"

if [[ $? -ne 0 ]]; then
echo "Failed to download the binary. Please check the URL or your network connection."
exit 1
fi

# Make the binary executable
chmod +x manuscript
chmod +x manuscript-gui

# Run the binary
echo "Binary downloaded and made executable. Run it with ./manuscript"
echo -e "🚀 Success! The binary is locked, loaded, and ready to go. \n🏃 Start it with: ./manuscript-gui"


0 comments on commit 0cf0107

Please sign in to comment.