mirror of
https://github.com/pezkuwichain/pezkuwi-validator-v1.0.0.git
synced 2026-06-23 20:21:02 +00:00
fix: Add real GitHub repository URLs for pezkuwi-sdk and DKSweb
- Update SDK URL to https://github.com/pezkuwichain/pezkuwi-sdk - Update DKSweb URL to https://github.com/pezkuwichain/DKSweb - Change folder references from Pezkuwi-SDK to pezkuwi-sdk for consistency - Enable automatic clone from public repositories
This commit is contained in:
@@ -202,32 +202,31 @@ install_dependencies() {
|
|||||||
echo -e "\n${GREEN}✓ All dependencies installed!${NC}"
|
echo -e "\n${GREEN}✓ All dependencies installed!${NC}"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Clone and build Pezkuwi-SDK
|
# Clone and build pezkuwi-sdk
|
||||||
setup_sdk() {
|
setup_sdk() {
|
||||||
print_header "Setting up Pezkuwi-SDK"
|
print_header "Setting up pezkuwi-sdk"
|
||||||
|
|
||||||
mkdir -p "$SHARED_DIR"
|
mkdir -p "$SHARED_DIR"
|
||||||
cd "$SHARED_DIR"
|
cd "$SHARED_DIR"
|
||||||
|
|
||||||
if [ -d "Pezkuwi-SDK" ]; then
|
if [ -d "pezkuwi-sdk" ]; then
|
||||||
echo -e "${YELLOW}Pezkuwi-SDK already exists. Updating...${NC}"
|
echo -e "${YELLOW}pezkuwi-sdk already exists. Updating...${NC}"
|
||||||
cd Pezkuwi-SDK
|
cd pezkuwi-sdk
|
||||||
git fetch origin
|
git fetch origin
|
||||||
git pull origin main || git pull origin master
|
git pull origin main || git pull origin master
|
||||||
else
|
else
|
||||||
echo "Cloning Pezkuwi-SDK from GitHub..."
|
echo "Cloning pezkuwi-sdk from GitHub..."
|
||||||
# TODO: Replace with actual repository URL
|
git clone https://github.com/pezkuwichain/pezkuwi-sdk.git
|
||||||
git clone https://github.com/YOUR_USERNAME/Pezkuwi-SDK.git
|
cd pezkuwi-sdk
|
||||||
cd Pezkuwi-SDK
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo -e "\n${YELLOW}Building Pezkuwi-SDK (Release mode)...${NC}"
|
echo -e "\n${YELLOW}Building pezkuwi-sdk (Release mode)...${NC}"
|
||||||
echo "This may take 15-30 minutes..."
|
echo "This may take 15-30 minutes..."
|
||||||
|
|
||||||
# Build the node in release mode
|
# Build the node in release mode
|
||||||
cargo build --release
|
cargo build --release
|
||||||
|
|
||||||
echo -e "${GREEN}✓ Pezkuwi-SDK built successfully${NC}"
|
echo -e "${GREEN}✓ pezkuwi-sdk built successfully${NC}"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Clone and build DKSweb frontend
|
# Clone and build DKSweb frontend
|
||||||
@@ -244,7 +243,7 @@ setup_frontend() {
|
|||||||
else
|
else
|
||||||
echo "Cloning DKSweb from GitHub..."
|
echo "Cloning DKSweb from GitHub..."
|
||||||
# TODO: Replace with actual repository URL
|
# TODO: Replace with actual repository URL
|
||||||
git clone https://github.com/YOUR_USERNAME/DKSweb.git
|
git clone https://github.com/pezkuwichain/DKSweb.git
|
||||||
cd DKSweb
|
cd DKSweb
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -289,7 +288,7 @@ PROMETHEUS_PORT=$PROMETHEUS_PORT
|
|||||||
DATA_DIR=$VALIDATOR_DIR/data
|
DATA_DIR=$VALIDATOR_DIR/data
|
||||||
KEYS_DIR=$VALIDATOR_DIR/keys
|
KEYS_DIR=$VALIDATOR_DIR/keys
|
||||||
LOGS_DIR=$VALIDATOR_DIR/logs
|
LOGS_DIR=$VALIDATOR_DIR/logs
|
||||||
SDK_PATH=$SHARED_DIR/Pezkuwi-SDK
|
SDK_PATH=$SHARED_DIR/pezkuwi-sdk
|
||||||
FRONTEND_PATH=$SHARED_DIR/DKSweb
|
FRONTEND_PATH=$SHARED_DIR/DKSweb
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
@@ -323,7 +322,7 @@ Type=simple
|
|||||||
User=$USER
|
User=$USER
|
||||||
WorkingDirectory=$VALIDATOR_DIR
|
WorkingDirectory=$VALIDATOR_DIR
|
||||||
EnvironmentFile=$VALIDATOR_DIR/config/validator.conf
|
EnvironmentFile=$VALIDATOR_DIR/config/validator.conf
|
||||||
ExecStart=$SHARED_DIR/Pezkuwi-SDK/target/release/pezkuwi-node \\
|
ExecStart=$SHARED_DIR/pezkuwi-sdk/target/release/pezkuwi-node \\
|
||||||
--base-path $VALIDATOR_DIR/data \\
|
--base-path $VALIDATOR_DIR/data \\
|
||||||
--chain local \\
|
--chain local \\
|
||||||
--validator \\
|
--validator \\
|
||||||
@@ -421,7 +420,7 @@ SHARED_DIR="$SCRIPT_DIR/../shared"
|
|||||||
echo "Checking for updates..."
|
echo "Checking for updates..."
|
||||||
|
|
||||||
# Update SDK
|
# Update SDK
|
||||||
cd "$SHARED_DIR/Pezkuwi-SDK"
|
cd "$SHARED_DIR/pezkuwi-sdk"
|
||||||
git fetch origin
|
git fetch origin
|
||||||
if [ $(git rev-parse HEAD) != $(git rev-parse @{u}) ]; then
|
if [ $(git rev-parse HEAD) != $(git rev-parse @{u}) ]; then
|
||||||
echo "SDK updates found. Rebuilding..."
|
echo "SDK updates found. Rebuilding..."
|
||||||
@@ -477,7 +476,7 @@ main() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Setup shared components (only if not already done)
|
# Setup shared components (only if not already done)
|
||||||
if [ ! -d "$SHARED_DIR/Pezkuwi-SDK/target/release" ]; then
|
if [ ! -d "$SHARED_DIR/pezkuwi-sdk/target/release" ]; then
|
||||||
setup_sdk
|
setup_sdk
|
||||||
else
|
else
|
||||||
echo -e "\n${GREEN}✓ SDK already built${NC}"
|
echo -e "\n${GREEN}✓ SDK already built${NC}"
|
||||||
|
|||||||
Reference in New Issue
Block a user